User Login Snippets


07 April, 2013   

A simple example code for user login with a login form and database query

30 March, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when the last page was loaded 3. We need a...

23 July, 2015   

Use a session variable that you store and increase after each false login. Don't forget to clear the session after you close an account or after the login was successful.

04 May, 2011   

Need to people out if they have been inactive for too long? Do it with this piece of code. Introduction ----------------------- This takes 3 functions to complete the inactive session task. 1. We need to check if the person is actually logged in using our isLogged function 2. We need the function to check the time the page loaded, and when...

22 January, 2011   

The example here is if you had a form on a website that when submitted, needed to use that information to go to a special URL where the login information was all appeneded to the URL. You could have the form post with method GET, but that is limited to the typical ?variable=foo&variable2=bar format.

Flex: My First Flex / Facebook Application by chrisaiv

Apache Code example for blocking based on User-Agent Header

20 April, 2013   

You can create your own Exceptions in PL/SQL

The below snippet will create a MySQL user and grant them all permissions on the given database.

15 November, 2011   

Showing how to read data (an integer) from user.

Example: There is a table, 'user', with a column, 'clear', containing values such as: `clear \'animal\' \'pass'\ ` and we would like to retrieve 'animal' and 'pass' ( without the pre & post \' )

24 July, 2013   

An example of how to use the mysql_real_escape_string

09 April, 2013   

How to "bounce" an Oracle database

01 October, 2013   

This class has lots of common functionality built right into it. It also supports Mysql and Sphinx.

09 July, 2013   

Show user's IP Address using a few lines of code, Place the code where you want the IP address to appear:

Detect Javascript On/Off, With Notification: If JavaScript is on the user gets a welcome message. If off, the user is instructed to turn it on.

16 February, 2012   

ASP code to ban user based on their IP address

18 June, 2013   

Define few variables with your MySQL database connection settings and connect to MySQL database using mysql_connect() and mysql_select_db() functions.

Query to find the most recent logins for a particular user

06 February, 2012   

ASP Forms and User Input from HTML form