Results 1 to 3 of 3

Thread: Refresh page web.config change

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    23

    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..

  2. #2
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    India
    Posts
    310

    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

  3. #3
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    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
  •  



Click Here to Expand Forum to Full Width