Session State not working

R

rkmoray

For some reason, I cannot get sessionstate to work

here is my config file area
<sessionState mode="InProc" timeout="20" cookieless="true"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="Provider=SQLOLEDB.1;Password=;Persist Security
Info=True;User ID=;Initial Catalog=;Data Source=;"/>

and in the code I have somehting simple like
Session["FullName"]=TextBox1.Text;

When I clikc to the next page, Session["FullName"] is blank.

Please help
 
B

bruce barker

when you set cookieless="true", the url is munged with the sessionid. check
you are not losing this munged when you redirect to the next page.

-- bruce (sqlwork.com)
 
J

Joe Fallon

Also,
check your @Page directive and be sure EnableSessionState is not False or
ReadOnly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top