close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Additional layer of security when login in (Session variables)

Thread began 7/28/2013 2:13 pm by Nutzo247 | Last modified 7/29/2013 10:35 am by Nutzo247 | 416 views | 2 replies |


Additional layer of security when login in (Session variables)

I been thinking on the session variables created on log on page. The default session variable created is the the userID, but that's just a number. could I create an additional session variable such as username to both validate both the userID and username together. i.e. the userID and username must be in the same record for the user to view the page.

My think, if the session variable is stored in a cookie and user PC is compromised (they didn't logout), they may be able to work out the session variables and then they can start sifting the shop database.

Or I'm over thinking a problem that doesn't exist.

Sign in to reply to this post

Jason ByrnesWebAssist

you are over complicating it.

the login works like this:

you enter the user name and password to the login form.

the database is queried to look for a record with the username and password you enter. If the username and login is found, the ID for that record is stored in a session variable.

so your thinking of storing 2 session variables, wouldn't solve anything, the one session is the result of the 2 values (username and password) being found in the database.

Session Variables are not stored in cookies, they are accessible by the server only. A session is terminated on the following:
User Logs Out
User Closes the web browser ( This includes restarting the computer)
Server Times out - if the user is not active on the site for a certain amount of time, the session is terminated.

Sign in to reply to this post


Thanks, that was helpful.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...