[solved]checking a session ha s ended

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pelegk2
Forum Regular
Posts: 633
Joined: Thu Nov 27, 2003 5:02 am
Location: Israel - the best place to live in after heaven
Contact:

[solved]checking a session ha s ended

Post by pelegk2 »

i want to check on each page the user has entered that the session has ended to i will redirect him to login again
how do i do that?
thnaks i bnadvance
peleg
Last edited by pelegk2 on Wed Jan 12, 2005 9:45 am, edited 1 time in total.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

well, there's that the user will get a new id, and where you haven't recieved communication from the passed id in x amount of time.

We've talked about this on numerous occasions...
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

If you store a variable in the session (e.g user_id) you can check to see if the user_id exists on each page.
Post Reply