Developer forum

Forum » Ecommerce - Standard features » Change Extranet user Timeout

Change Extranet user Timeout

Dmitrij Jazel
Reply
Hello DW,

I have a question for you. Lets's there is a webshop, that allows access only to the Extranet users, there is time-limit (default about 15min.) how long can they be idle while logged-in until they will be logged of automatically.

It should be quite easy to change. Could anyone please help me out here? :-)

Regards,
Dmitrij
 

Replies

 
Morten Bengtson
Reply
This post has been marked as an answer
The default session timeout is 20 minutes and you can change that in web.config, but it does not necessarily guarantee that the session will be kept alive in 20 minutes.

Be aware that if you set the session timeout to e.g. 60 minutes then the application (site) will need a lot more storage for session data. By default the session data is stored in memory on the server.

Another solution to avoid unwanted timeouts is to add some javascript that "pings" the website once in a while (make an ajax request to some lightweight dummy page). You should only add this to the pages where users are often idle for more than 20 minutes.

But why is the timeout a problem?
The ecom cart will be restored when the user stops being idle, because it is referenced in a cookie.
Also, if you enable autologin on the extranet form, then the user will be logged in automatically when he wakes up from his sleep.

BR. 
Morten
Votes for this answer: 0
 
Dmitrij Jazel
Reply
Thanks Morten,
Was wondering if there was a some kind of strange setting some place in DW to achieve just this.
I like Ajax approach :-) I think it should work just fine :-)

Thanks for that :-)

Regards,
Dmitrij

 

You must be logged in to post in the forum