I have set up a website with a login page and currenlty it *kinda* works. If you successfully login, a session variable is created that stores the SessionID and then you get to the next page. On that page and others I test to see if the session variable is empty or not; if it’s not empy the page loads, otherwise you are told the session has expired or you need to login. The main thing I want to do is prevent people from bookmarking the pages after login.
If you quit IE altogher and restart it and try to bookmark in you can’t. However, if you go somewhere else and come back via bookmark, you’re in. Also, I noticed in my reference book that a cookie can be set to expire in a day or more and I’d like to limit the variable’s life time to something like 30 minutes.
So, in sum:
1) what’s a good way to send data from page to page without it being visible to the client? Cookies? Session Variables? Elves?
2) how to ensure that the user (ideally) can never ‘leave’ the system and come back behind the login via a bookmark? is there a xbrowser block bookmarks script that is available? Any other ideas on what might be an issue with ensuring that people have, indeed, logged in? Flags to a db perhaps?
TIA