Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

VBScript asp help

  • 25-07-2014 2:50pm
    #1
    Registered Users, Registered Users 2 Posts: 191 ✭✭


    hello Guys,

    I am making a website and coming accross issues.

    basically there is 4 pages, and to get to those login pages you must login through the login.asp page. This works fine.

    But for security reasons i want to put a session time out on it so it redirects to the login screen after eg 10 mins and user must login again

    Ive looked and looked so hopefully some1 can help.

    Sample code im using for the login is below.

    thank you



    [HTML]<%@ Language=VBScript %>
    <%
    if Request("password1")="mypassword1" then
    Session("loginokay") = True

    end if
    %>
    <% Session.Timeout=1

    if Session.Timeout=null then
    Session("loginokay") = False

    end if
    %>[/HTML]


Comments

  • Registered Users, Registered Users 2 Posts: 9,560 ✭✭✭DublinWriter


    Google Global.asax - you'll need to put the relevant code in the session timeout event.


Advertisement