1

Can anyone please help me how can I work with 'session' while working on visual studio asp.net development server please? as I found its not working there but working with iis

Regards

skaffman
  • 398,947
  • 96
  • 818
  • 769
Rana
  • 5,912
  • 12
  • 58
  • 91

2 Answers2

2

Session state works great on ASP.NET development server. I'm currently developing a couple of ASP.NET apps and all of them are hosted in this web server during the development process.

Please comment these information:

  • Visual Studio version.
  • Session state mode (inproc, sqlserver, state server or custom?).
  • ASP.NET version.

Also, please edit your question with your webconfig (remove credentials and so, everyone needs to see how your ASP.NET is configured, but not your sensitive data).

Let's see.

Matías Fidemraizer
  • 63,804
  • 18
  • 124
  • 206
0

If Session is not working on your web server then you can use cache instead of Session. I was facing the same problem and it worked.

Jamal
  • 763
  • 7
  • 22
  • 32
  • 2
    what the email is here for? – Shankar Nov 12 '17 at 04:36
  • That's different issue. Session is used to verify if the data is generated by Server side, and resent from client, hence, if we store the data in cache, the verification will be all passed in any case. That's different issue, we cannot use cache in the verification case. – Dennies Chang Dec 10 '19 at 08:39