Asp.net cookieless sessionId url location

前端 未结 2 1525
猫巷女王i
猫巷女王i 2021-01-20 07:50

I\'m working on a mobile site where we can\'t rely on the phone hitting the site to have cookie support. I\'m using the cookieless option for sessions and wondering if ther

相关标签:
2条回答
  • 2021-01-20 08:39

    Can you not store user sessions using a Sql Database instead? I don't think you can change the sessionId position, you could try re-writing the url's but I'm not sure how that would affect .Net's handling of it

    EDIT: I just remembered that the Sql option still requires a cookie on the client machine so ignore me

    0 讨论(0)
  • 2021-01-20 08:42

    Session options are set in the web.conf sessionState section. This is detailed here:

    http://msdn.microsoft.com/en-us/library/h6bb9cz9(vs.71).aspx

    Theres no way to setup the sessions like this with the built in session functionality of asp.net. Your best bet is to define your own session mechanism

    0 讨论(0)
提交回复
热议问题