Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 28th, 2006, 02:32 PM
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET SessionID Questions

I'm going to be generating a SessionID for each user on my main application, so that it can be transfered across other sub-applications. I'm also going to be inputing it into an authentification DB table when the user logs in, along with their AccountID and the current DateTime.

But I'm new to SessionID's and I have few questions:
1) How long can a SessionID end up being?
2) How long are they stored for?
3) If a user closes their browser, reopens it, and logs in again, will they have a new SessionID or the same one? (Note: I tried it out, and it stayed the same. But I'm not sure if that's how it's supposed to work.)
4) I've heard that a SessionID can end up not being unique. Is this true?
5) What are the benefits of using a SessionID instead of an already existing AccountID for each user. (Note: Each Account ID is a unique ID stored in the main accounts DB table).

Ok, that's it. Thanks for any help.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Several questions in asp.net collie General .NET 0 September 30th, 2006 05:58 AM
ASP.NET questions. cstooch Classic ASP Databases 0 May 14th, 2006 02:13 PM
Upgrading to ASP.NET 2.0 Questions Aaron Edwards ASP.NET 2.0 Basics 2 December 11th, 2005 11:51 PM
Styles.CSS and ASP.NET Newbie Questions sstory ASP.NET 1.0 and 1.1 Basics 4 September 29th, 2004 06:30 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.