you can use session state upon FIRST successful login save user variables, e.g. username, passwd, server, logintime, blah blah. return to calling page of login.aspx (i'm assuming u know how!) on your shopping page Page_Load
check if session variables are present.
try
{
// if your Session["username"] does not exist, it will throw exception
// if it is empty or null, we throw our own exception
if ( null == Session["username"] || "" == Session["username"].ToString() )
throw new Exception();
}
catch
{
// on exception - meaning not logged on or timed out
Response.Redirect("login.aspx?returl=...", true);
}
Take care though, session has expiry for idle time. e.g. you cannot login and come back after an hour and expect the values to be saved. If you need more help, don't hesistate :) Of course, another approach is to use cookies (which are stored on the client machine as apposed to the session) Hope this was what you were looking for. If anyone has a better solution I would love to hear it. regards, Noman Nadeem :zzz: