Forums
This topic is locked
using http_referer
Posted 25 Feb 2003 15:42:07
1
has voted
25 Feb 2003 15:42:07 Dave Clarke posted:
HiI have a few pages that are only available to members and therefore have a "restrict access to page" behaviour on them using username, password and access group.
If a non-member (or non logged in) member tries to access them they are redirected to a page that tells them to either join or login.. all works well .. but
If they do successfully access these pages and stay on one page for quite a while then the session times out and they are no longer logged in, so then if they try to access another restricted page they are given the same redirect.
Can I put something like this on the page they are redirected to to redirect yet again to a page that informs them they have timed out and need to log in again?
If Request.servervariables("HTTP_Referer"


Thanks
Dave
ASP|VBScript|IIS5.1|Access|WinXPPro & WinXPHome
Replies
Replied 25 Feb 2003 16:39:21
25 Feb 2003 16:39:21 Owen Eastwick replied:
Not a n answer to your question, but might be useful, if the default timeout is too short on your web server you can change the default:
<%
Session("Whatever"
= "Something"
Session.Timeout = 20 ' Time out after 20 minutes
%>
Regards
Owen.
-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm
Developer services and tutorials: www.drdev.net
Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/
<%
Session("Whatever"


Session.Timeout = 20 ' Time out after 20 minutes
%>
Regards
Owen.
-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only): www.tdsf.co.uk/tdsfdemo/Shop.htm
Developer services and tutorials: www.drdev.net
Multiple Parameter UD4 / Access 2000 Search Tutorial: www.tdsf.co.uk/tdsfdemo/