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

You are currently viewing the ASP.NET 3.5 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 August 3rd, 2008, 09:07 AM
Authorized User
Join Date: Jun 2008
Posts: 17
Thanks: 1
Thanked 0 Times in 0 Posts
Default session and variable...

Hi, i want to know,if multi user enter a page, the variable data(declare as dim) will be divide to each 1 users or the variable data will be overwrite..? Same with login(session). If user login and session("user")=username, will the session be overwrite if other user login?

Old August 3rd, 2008, 09:14 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Page variables are page life cycle scope. Even the same user hitting the same page different times could have different values in page variables.

Session data is user specific. Session values with the same key name for one user does not equal the same values for another user.

Only application level data or static page scope variables are shared between users.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Variable youyou_hym Dreamweaver (all versions) 4 January 20th, 2005 11:48 AM
Session variable anuradha80 General .NET 3 November 4th, 2004 12:39 AM
Session variable mrideout BOOK: Beginning ASP.NET 1.0 1 August 12th, 2004 07:01 PM
Session Variable mcdowell BOOK: Beginning ASP 3.0 5 June 20th, 2004 05:47 AM

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