ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Effective Forms Authentication, Part 1
Subject:   Session out
Date:   2005-02-23 03:51:45
From:   kanagav
its working fine when i test it.
after sucessfully authenticated iam storing username and password in session (since i am using sql users and roles, i need password for connection string). but after some times when the session is expired that is when session("username") become null. its noe redirecting to login page, its showing sql login error.
i need to check in every page
if session("username") is nothing then
redirect to login page


Please give me suggestion on this