Jump to content

Question regarding sessions


holowugz

Recommended Posts

Ok i have a few questions.

First of all i have two applications that run on my web server, and just as an experiment i logged into one of them, and then tried to acces a page on the other.
Now that is because the login system is practically identical and requires the same user permissions.

So techncially that is fine, but i want to make sure they log into each system first.

Now i was thinking if i created a table for each one called session.
and i stored teh session ID, User ID, Time, and IP.

and on each page as a secuirity check i just make sure that the current session ID exists in the database.

the information is entered upon login and deleted upon logout.

would that work?
Link to comment
Share on other sites

[!--quoteo(post=366902:date=Apr 20 2006, 06:19 PM:name=Darkness Soul)--][div class=\'quotetop\']QUOTE(Darkness Soul @ Apr 20 2006, 06:19 PM) [snapback]366902[/snapback][/div][div class=\'quotemain\'][!--quotec--]
isn't simple you set different session names for each app? so, each app will use differente files to record sessions..

Never tested your idea, so, don't know.. ^^"

D.Soul
[/quote]

when you say session names, i assume you mean the variable names.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.