Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Asp.net 2.0 cookieless="usecookies" not working

Asp.net 2.0 cookieless="usecookies" not working

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netsecuritydebugging
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NMiceli
    wrote on last edited by
    #1

    Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration> Regards. -- modified at 22:19 Saturday 11th March, 2006

    Z M N 3 Replies Last reply
    0
    • N NMiceli

      Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration> Regards. -- modified at 22:19 Saturday 11th March, 2006

      Z Offline
      Z Offline
      zanzibarwinds
      wrote on last edited by
      #2

      The cookieless attribute is a boolean, use either TRUE or FALSE

      M 1 Reply Last reply
      0
      • N NMiceli

        Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration> Regards. -- modified at 22:19 Saturday 11th March, 2006

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        Hi there, I guess you are using the ASP.NET development server instead of the IIS. In fact, there should be no problem with the IIS when you set the cookieless attribute to usecookies. With the built-in server, you either set the atrribute to useuri or true to maintain the sessionid in the query string.

        1 Reply Last reply
        0
        • Z zanzibarwinds

          The cookieless attribute is a boolean, use either TRUE or FALSE

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          In fact, there are a couple of new options added in the ASP.NET 2.0 that you can use to set to the cookieless attribute such as AutoDetect|UseCookies|UseUri|UseDeviceProfile. For more information, you can see sessionState Element[^]

          1 Reply Last reply
          0
          • N NMiceli

            Hello, i need some help please to solve this problem; i'm migrating to asp.net 2.0 and i'm having problems with session states more specific if i set the web.config sessionstate to cookieless="usecookies" sessionid is lost after every postback but if the cookieless is set to useuri it isn't. Is there any special setting that i need to change? I have tried with xp pro,w2003 with same result. Here is my web.config <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true"/> <authentication mode="Windows"/> <sessionState mode="InProc" cookieless ="UseCookies" timeout="30"></sessionState> </system.web> </configuration> Regards. -- modified at 22:19 Saturday 11th March, 2006

            N Offline
            N Offline
            NMiceli
            wrote on last edited by
            #5

            10x i have found why i was having this problem, i found the answer here http://www.eggheadcafe.com/articles/20021016.asp[^] Q: Why does the SessionID changes in every request? A: This may happen if your application has never stored anything in the session state. In this case, a new session state (with a new ID) is created in every request, but is never saved because it contains nothing. Regards.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups