I save the session ID in a cookie. I check that the session is still there in every of my scripts. It all works fine.
Now, I wanted to make a signout.cgi script. and I thought the best way would be to just expire it month ago. However when I afterwords hit the back button, it IS possible to go back and see the last page.
I want it like hotmail! when I hit the signout link, then there are no way back... what do they do?
1. Is it the cookies?
2. Is it the pages that doesn't expire, so that they don't reload every single time.
Thanks!
problem 2:
2b actually, I dont quite understand how a browser knows if it should reload a page or grap the one it has in the cache. I have been lucky in my scripts, because when ever I have done some "Edit" scripts, the main page has been reloaded when I have submitted the data and gone back to the "main.cgi". But I just decovered that the index.cgi page doesn't, I have to hit reload to be redirected (I redirect if I already got a session ID).
So, problem 2: I made my script redirect using META HTTP-EQUIV if there is already a session ID. However if I just logged in (in the index.cgi page) and come to the main.cgi, and hit back, then it DOESN'T redirect me to main.cgi, which it should, because I already AM signed in!
Now, I wanted to make a signout.cgi script. and I thought the best way would be to just expire it month ago. However when I afterwords hit the back button, it IS possible to go back and see the last page.
I want it like hotmail! when I hit the signout link, then there are no way back... what do they do?
1. Is it the cookies?
2. Is it the pages that doesn't expire, so that they don't reload every single time.
Thanks!
problem 2:
2b actually, I dont quite understand how a browser knows if it should reload a page or grap the one it has in the cache. I have been lucky in my scripts, because when ever I have done some "Edit" scripts, the main page has been reloaded when I have submitted the data and gone back to the "main.cgi". But I just decovered that the index.cgi page doesn't, I have to hit reload to be redirected (I redirect if I already got a session ID).
So, problem 2: I made my script redirect using META HTTP-EQUIV if there is already a session ID. However if I just logged in (in the index.cgi page) and come to the main.cgi, and hit back, then it DOESN'T redirect me to main.cgi, which it should, because I already AM signed in!