Monday, March 26, 2012

session variable or object

i have some problem with session object:

for example if i define a session variable
and make it equal to a string(i.e session("str")="fgjfkg" )
when i want to use it in another page it's value is equal with nothing
(i.e session("str")=nothing)
is you know how to solve prolem please tell me

thanksHello, make sure session are enabled in the asp.net application you have. Check your web.config file.
Also, make sure that cookies are enabled on ur machine, since sessions will use cookies.

regards.
hi

thanks for your suggestion,i try it but it didn,t
solve my problem again the session variable couldn't
store any value i have a question is it neccesary to use it
in "session start" in clobal.asax

regards
A.Doroudian
Hello, yes you should, you have to inclide the Session_Onstart method.

regards.

0 comments:

Post a Comment