Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

session problems

Posted 16 Feb 2002 18:39:00
1
has voted
16 Feb 2002 18:39:00 salman khan posted:
i am not sure about my sessions working. i am running my test site on IIS5 windows 2000 platform.
i would like anyone to help me fix this problem;

when user logs off after he has added something in shopping cart, the cart items are still there when i log on with another username/password. Even though i have spcified a logout link which should kill off a session but in my case it nots doing it. So i want when user clicks log off or clsoe window to kill the session but possibly same user can log back on and still see his cart items.

Also how can i carry session info till the user checksout and pays. I look forward to hearing from any one bear in mind i am at intermediate stage with ultradev. Thank you.

with regards
salman.

Replies

Replied 18 Feb 2002 23:23:29
18 Feb 2002 23:23:29 Dennis van Galen replied:
question...
After pressing logout, while having something in your cart, do you press the back button in your browser ?

If the answer is yes, then try using a "do not cache page" on the CART and ALL secure pages.
it could be that the session really was killed, but that the page is still in the browser's cache.

If the user closes the browser and returns then he will get a new session, that's probably something that not many people know...
Try opening 3 browsers, have all 3 log into the same website, i'm willing to bet that in 90% of the websites you can log in...Unless they cheat and have a field set to "logged in" in their user-dbase in that case be prepared to be redirected to a "Hey dude, you can only log in one at the time" page.

Sessions can be weird though, they seem to often live longer then the time you set them to.

Hope I helped a little with your sessions.

With kind regards,

Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services
Replied 19 Feb 2002 18:32:58
19 Feb 2002 18:32:58 salman khan replied:
Well after pressing log out or closing window and logging in new user the last user cart data is still there and how do you CACHe a page as you recommended.
The problem is new sessions are not been created and i can empty carts only if i click empty cart link in basket page but i want it store it for that particular user and new user gets his own and they both can log back on and see their items cause i have set it for 7 days. thanks for you help but pls i need a little bit more.

[
quote]
question...
After pressing logout, while having something in your cart, do you press the back button in your browser ?

If the answer is yes, then try using a "do not cache page" on the CART and ALL secure pages.
it could be that the session really was killed, but that the page is still in the browser's cache.

If the user closes the browser and returns then he will get a new session, that's probably something that not many people know...
Try opening 3 browsers, have all 3 log into the same website, i'm willing to bet that in 90% of the websites you can log in...Unless they cheat and have a field set to "logged in" in their user-dbase in that case be prepared to be redirected to a "Hey dude, you can only log in one at the time" page.

Sessions can be weird though, they seem to often live longer then the time you set them to.

Hope I helped a little with your sessions.

With kind regards,

Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services


with regards
salman.
Replied 19 Feb 2002 19:37:47
19 Feb 2002 19:37:47 Dennis van Galen replied:
Do not cache page is a server behavior, there's one in the Magicbeat extension suite and there's another on the MM UD exchange, search for No Cache.

I think you have a setting in your webserver set wrong, otherwise i haven't a clue why the server won't create new sessions, but the entire shopping cart relies on sessions, so if your server doesn't create any then it should cause errors...

I will try this later, for now see if this link can provide you with more session information:
search.atomz.com/search/?sp-p=any&sp-k=Dreamweaver+UltraDev+Support&sp-k=Dreamweaver+Support&sp-k=General+Support&sp-a=sp1001395b&sp-q=no+sessions&Submit=Search

You could also look in your IIS online manual for help.

With kind regards,

Dennis van Galen
Webmaster KPN Nederland
Financial and Information Services

Reply to this topic