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

VBScript asp help

Options
  • 25-07-2014 3:50pm
    #1
    Registered Users 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 Posts: 9,557 ✭✭✭DublinWriter


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


Advertisement