473,405 Members | 2,279 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,405 software developers and data experts.

How to end a session

Hi

I'm using Session.Abandon() to end a user session when clicking the
Logout button of the application. But if the user request the page
directly via URL in IE the server starts processing the page again.
The sessionIDs are the same in both cases.

I expected the sessionID not to be valid anymore.Should one end the user
session in another way? If a user is logged out he should be redirected
to the login page if he requests pages directly.

Thanks for help
Steffen

Nov 19 '05 #1
2 1080
if the session has actually ended there is anothing to stop them being given
the same session ID as the session ID's are recycled. Check your session is
ending correctly by loading a session value in one session and checking it
in another via a different page request.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Steffen Loringer" <st**************@freenet.de> wrote in message
news:3i************@news.dfncis.de...
Hi

I'm using Session.Abandon() to end a user session when clicking the Logout
button of the application. But if the user request the page directly via
URL in IE the server starts processing the page again.
The sessionIDs are the same in both cases.

I expected the sessionID not to be valid anymore.Should one end the user
session in another way? If a user is logged out he should be redirected to
the login page if he requests pages directly.

Thanks for help
Steffen

Nov 19 '05 #2
In ASP.NET 2.0, this is programmable via the sessionState setting:
regenerateExpiredSessionId, settable to "true" or "false"
<sessionState mode="InProc" cookieless="UseCookies" regenerateExpiredSessionId="false"
timeout="20">


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"John Timney (ASP.NET MVP)" <ti*****@despammed.com> wrote in message
news:O6**************@TK2MSFTNGP10.phx.gbl...
if the session has actually ended there is anothing to stop them being given the same
session ID as the session ID's are recycled. Check your session is ending correctly by
loading a session value in one session and checking it in another via a different page
request.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Steffen Loringer" <st**************@freenet.de> wrote in message
news:3i************@news.dfncis.de...
Hi

I'm using Session.Abandon() to end a user session when clicking the Logout button of
the application. But if the user request the page directly via URL in IE the server
starts processing the page again.
The sessionIDs are the same in both cases.

I expected the sessionID not to be valid anymore.Should one end the user session in
another way? If a user is logged out he should be redirected to the login page if he
requests pages directly.

Thanks for help
Steffen


Nov 19 '05 #3

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

Similar topics

0
by: joseph conrad | last post by:
Hi, I tried to implement my own session handler in order to keep control on the process the drawback I foun it is not creating and storing in my cookie the PHPSESSID variable anymore. reading te...
14
by: aroraamit81 | last post by:
Hi, I am facing a trouble. I have some Session variables in my code and somehow my session variables are getting mixed up with other users. For example User A has access to 10 companies and...
7
by: aroraamit81 | last post by:
Well Guys, Here is a very strange trouble. When more than one users request tto same page at the same time then our session gets conflicted. Moreover I printed my SessionID, strangely but true I...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
3
by: veenna | last post by:
Hi all, I have a page in asp.net. A button click in the page will open a pop-up. I have used btn.attributes.add("onclick", ""); to open the pop-up. Now if session is expired, it is opening the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.