Log off the WebShop

In the Navision Webshop you stay logged on as long as you doesn´t explicity log off. This means that if someone else uses your computer and connect to the webshop site he/she can shop in your name if you didn´t explicity logged off the shop but just turned off you computer or shut down yor browser. I wounder if any one has a solution to this problem, that is how can I make the shop automatically log off a user when his browser i shut down or when hi leaves the site. I would appreciate i quick answer, Krister Wiklund

quote:


Originally posted by krwiume: In the Navision Webshop you stay logged on as long as you doesn´t explicity log off. This means that if someone else uses your computer and connect to the webshop site he/she can shop in your name if you didn´t explicity logged off the shop but just turned off you computer or shut down yor browser. I wounder if any one has a solution to this problem, that is how can I make the shop automatically log off a user when his browser i shut down or when hi leaves the site. I would appreciate i quick answer, Krister Wiklund


Hi, if you set the property EXPIRE of the cookie to , it will be erased each time the browser is closed. This was written in “Active Server Pages 3.0” Page 132, Wrox. http://www.wrox.com I hope that will help Greetings JDickheiwer

Has anyone tried this? I just can’t seem to get it working! Problem 1: In the global.asa file the variable MSCSSite.ExpirationDate = 1 'days can be set to change the period before you will be logged off. This works fine. Only the time is from Server point of view. When setting a short period e.g. 0.007 (10 min.) if the client is GMT +1 the cookie expired 50 min. ago. Problem 2: I can’t assign the Null value to the Expiretime I’ve tried to REM out the lines in util.asp where the expiretime is set but an expiretime is still assigned to the cookie. I see 2 solutions for my problem: 1. A way to get the time from the clients system. 2. More help assigning Null value to the cookie. Best Regards Janus Rossing I see