session Problem

S

sri

Hi, I have Login page (login.aspx") and after entering into inbox by giving valid userid and password the session item is userid and password. In inbox page ("inbox.aspx") i have logoff button and the code in the button is sessions are null and it redirects to login page. Before clicking the logof button i copy the inbox url. when i get the login page i copy the url in the address box of the browser and when i press enter i am getting the inbox page("Inbox.aspx"). so please give me a sugession.. that.. when i copy the URL in to the browser adress bos and when i press enter key and when the session is NULL then it should redirect to LOGIN page...

From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
 
S

Siva M

You may try disabling the caching of the inbox.aspx page. There are many
ways to do it. One of them is

Response.Cache.SetCacheability(HttpCacheability.NoCache)

Hi, I have Login page (login.aspx") and after entering into inbox by giving
valid userid and password the session item is userid and password. In inbox
page ("inbox.aspx") i have logoff button and the code in the button is
sessions are null and it redirects to login page. Before clicking the logof
button i copy the inbox url. when i get the login page i copy the url in the
address box of the browser and when i press enter i am getting the inbox
page("Inbox.aspx"). so please give me a sugession.. that.. when i copy the
URL in to the browser adress bos and when i press enter key and when the
session is NULL then it should redirect to LOGIN page...

From http://www.developmentnow.com/g/8_0_0_0_0_0/dotnet-framework-aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top