473,322 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

session Problem

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_...ork-aspnet.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Nov 19 '05 #1
3 1570
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" <sr**************@rediffmail.com> schrieb im Newsbeitrag
news:31**********************************@msnews.m icrosoft.com...
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

Nov 19 '05 #2
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" <sr**************@rediffmail.com> wrote in message
news:31**********************************@msnews.m icrosoft.com...
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
Nov 19 '05 #3
Sri
Thanks! Siva M, Daniel Walzenbach for your reply...

Its Working.

From http://www.developmentnow.com/g/8_20...on-Problem.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
1
by: Scott Wickham | last post by:
I'm having a problem saving session information on one form and retrieving it on a subsequent form...for only one out of a number of users. Actually, I'm not absolutely certain it's a session...
6
by: Lina Manjarres | last post by:
Hello, I have a session variable in a login page. Then I go to a form page where I uses the ProfileID and the UserID. Then I go to a result page where I would like to use the UserID as a filter,...
7
by: Ottar | last post by:
I've made a program sorting incomming mail in public folder. The function runs every minute by using the form.timer event. In Access XP it runs for weeks, no problem. Access 2003 runs the same...
5
by: Mark Rodrigues | last post by:
Hi Everyone, I have been fighting a problem for a while and I wonder if someone out there can help. This problem has been presented in a number of news postings previously but I am yet to see a...
9
by: William LaMartin | last post by:
I have a problem, mentioned here before, of Session and Application variables disappearing at one site but not at others or on my development computer. The problem is illustrated by an example...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
1
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of...
5
by: Just D. | last post by:
Do we have any access to the Session object from a different Session? The idea is to save Session of a current user and then if he logs in again then return the Session back. It's not a problem to...
7
by: Mr Newbie | last post by:
I have written a Custom Control Menu. Its fairly simple but it works well enough. In order to simplify things I decided to store the Menu1 custom control in Session. In the page load event below,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.