Problems using Session Objects, if cookies are disable the Session object is not working.


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Problems using Session Objects, if cookies are disable the Session object is not working.

  1. #1
    hhumbto Guest

    Problems using Session Objects, if cookies are disable the Session object is not working.


    Hi All,
    Please help, I am trying to use a session variable place in the Session_OnStart
    section of the global.asa
    file, but if I disable the cookies in my browser this way of handle persistance
    data is not working can you advice on how to use it or other ways to handle
    persistance data.

    Thanks in advance.


  2. #2
    prasanth Guest

    Re: Problems using Session Objects, if cookies are disable the Session object is not working.


    Hi
    For Session variables to work, Cookies need to be enabled in Client Browser.
    This is because IIS tracks Session scoped variables by using a cookie which
    it puts on client browser.
    You may try other classic ways like
    1. query string variables
    2. hidden variables


    Thanks



    "hhumbto" <hhumbto@yahoo.com> wrote:
    >
    >Hi All,
    >Please help, I am trying to use a session variable place in the Session_OnStart
    >section of the global.asa
    >file, but if I disable the cookies in my browser this way of handle persistance
    >data is not working can you advice on how to use it or other ways to handle
    >persistance data.
    >
    >Thanks in advance.
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center