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
https://forums.phpfreaks.com/topic/7969-question-regarding-sessions/
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.