Session State not working

  • Thread starter Thread starter rkmoray
  • Start date Start date
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
 
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)
 
Also,
check your @Page directive and be sure EnableSessionState is not False or
ReadOnly.
 
Back
Top