Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > session Problem

Reply
Thread Tools

session Problem

 
 
sri
Guest
Posts: n/a
 
      11-12-2005
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_...ork-aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
 
Reply With Quote
 
 
 
 
Daniel Walzenbach
Guest
Posts: n/a
 
      11-13-2005
Sri,

I would suggest that you have a look at the Authentication and
Authorizsation festures the .NET framework already offers.
Have a look at http://asp.net/QuickStartv20/aspnet/...y/default.aspx

Regards

Daniel Walzenbach


"sri" <> schrieb im Newsbeitrag
news:314c2f61-9c6c-493a-9ce1-...
> 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_...ork-aspnet.htm
>
> Posted via DevelopmentNow.com Groups
> http://www.developmentnow.com



 
Reply With Quote
 
 
 
 
Siva M
Guest
Posts: n/a
 
      11-13-2005
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.No Cache)

"sri" <> wrote in message
news:314c2f61-9c6c-493a-9ce1-...
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_...ork-aspnet.htm

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


 
Reply With Quote
 
Sri
Guest
Posts: n/a
 
      11-13-2005
Thanks! Siva M, Daniel Walzenbach for your reply...

Its Working

From http://www.developmentnow.com/g/8_20...ion-Problem.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Cookieless Session Link, Cause of Session State Problem? fizbang@gmail.com ASP .Net 1 01-19-2006 03:53 PM
Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef objects are not permitted when session state mode is 'StateServer' or 'SQLServer'. Mike Larkin ASP .Net 1 05-23-2005 12:33 PM
Session State - What does it take to establish one single ASP.NET session per "browser session" Jeff Smythe ASP .Net 3 01-02-2004 04:10 AM
How can I "know" the difference between a session timed out and a session that did session.abort? Jazzis ASP General 2 09-23-2003 07:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57