|
-
Feb 22nd, 2010, 02:02 AM
#1
Thread Starter
Junior Member
Refresh page web.config change
Hi,
I have developed a website with a login form (ASP.Net 2008 and VB 2008). When user enter username and password, i store the username in a key in web.config. The username will display in a label in all pages by using this stored key value. Comp1 start working in the website. In this same time another user login in another system and start working in the site. Now if comp1 refresh the page, the username change. Please help..
-
Feb 22nd, 2010, 02:23 AM
#2
Hyperactive Member
Re: Refresh page web.config change
oh dear... multiple users are updating your key from web config. So your user name keep in changing. Handle user name with session instead of saving in web.config.
Sagar
VB6, VB.net,C#,ASP, ASP.net MSSQL, MYSQL
-
Feb 22nd, 2010, 04:02 AM
#3
Re: Refresh page web.config change
Normally when you make any session the aspnet_wp process will restart the IIS and all your session variable will lost. As suggested you can store it in a session variable
Please mark you thread resolved using the Thread Tools as shown
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|