473,379 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Session State not working

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

Nov 18 '05 #1
2 3771
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)

"rkmoray" <rk*****@aol-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
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

Nov 18 '05 #2
Also,
check your @Page directive and be sure EnableSessionState is not False or
ReadOnly.
--
Joe Fallon

"rkmoray" <rk*****@aol-dot-com.no-spam.invalid> wrote in message
news:40********@Usenet.com...
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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yoshibebe | last post by:
Hi, I have developed a project on my local machine. The session state variables are working fine on my local machine. When I port it into a another server called v-projects, and I try to run the...
9
by: charliewest | last post by:
Hello - I have images saved in my SQL SERVER 2000 database. Using ASP.NET (C#) is there any way to temporarily save an image to a session object, and after running some other operations, later...
5
by: Sean | last post by:
Problem with sessions I have created an application without concern for sessions. As it turns out I think that might be my undoing. What I have: I have an online quiz. I don’t need to know...
5
by: Steven Blair | last post by:
I have the following code: Session = new CurrentUser("TEST"); When I postback to the server, the Session is null. My guess is a only the refence to my actual class is stored, rather than the...
4
by: lumazi | last post by:
Hello Everyone, I have a confusing problem. I'm getting the following error message on an ASPX page ... Session state can only be used when enableSessionState is set to true, either in a...
8
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we...
2
by: fniles | last post by:
I am using Visual Studio 2005. In my ASPX page, when I try to use Session, I got the error "Session state can only be used when enableSessionState is set to true, either in a configuration file or...
2
by: StanB | last post by:
I came across this weird problem: 1. Session state stops working after the app is deployed to another server because IE does not accept cookies. 2. It works if cookieless="true" in the...
10
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
I've been on this for a while, and cannot figure it out. Can someone please help with this message? SessionState can only be used when EnableSessionState is set to true, either in a...
5
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.