Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2003
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Session Var in ASP.NET

    In Form1 I set a Session("userID") and redirect to Form2.
    In Form2 I have a dropdown web control with AutoPostBack = True.
    When I change the dropdown selected value, my Session("userID") becomes an empty string. Why and how to prevent it from happening?

    Note: this happens only on the server. When I try it locally everything works fine.

  • #2
    Regular Coder
    Join Date
    Jul 2004
    Location
    France
    Posts
    141
    Thanks
    0
    Thanked 0 Times in 0 Posts
    are you on a free host ? if so most part of them are not full applications and global.asax are not working

  • #3
    Regular Coder
    Join Date
    Oct 2004
    Location
    In front of this computer. (Where else?)
    Posts
    442
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Discuss with your service provider. If it works fine locally and doesn't work remotely, the prob is on the host's side. Read their documentation and their FAQs. Contact someone there if possible with the problem u're having.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •