chandreshkoyani
chandreshkoyani

Reputation: 183

How to set sessionstate in classic asp?

Is there any way to set sessionstate=readonly in classic asp?

We want to set sessionstate is readonly.

Upvotes: 1

Views: 742

Answers (2)

ulluoink
ulluoink

Reputation: 2785

as far as i know there is no way in classic asp to set the session state to readonly like in asp.net.

you could either turn it on or off like described here

an alternative is not to store session data in session variables but in a database. but in classic asp you have to do this manually....

Upvotes: 2

Paul
Paul

Reputation: 1066

No session state is read/write, however just wrap-it-up with a function which prevents tampering. you could even prefix the session name with a 'mystical' value so tampering gets harder.

The problem lies in the fact that a certain moment in time, at a certain place in your code you MUST write, otherwise you can't user them at all.

So the place to look for the solution is: - where is write allowed - where is write NOT allowed

that is the real question (I think...)

Upvotes: 0

Related Questions