473,480 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

session disable

i got this error when click on Login button in web form.

"Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive "

in Line Session.Item("error") = "exception occured".
Need help.

--
Sakinah
TPM, Malaysia
Nov 22 '05 #1
2 1232
Hi,

Are you sure session state enabled? Check whether enableSessionState=true in
machine.config.

What is the sessionState mode in your web.config?

Do you also have SharePoint services installed in this same machine? If yes,
then check out this issue:
http://support.microsoft.com/default...b;en-us;837376

HTH,
Rakesh Rajan

"Sakinah" wrote:
i got this error when click on Login button in web form.

"Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive "

in Line Session.Item("error") = "exception occured".
Need help.

--
Sakinah
TPM, Malaysia

Nov 22 '05 #2
my sessionstate in 'web.config' is:

<sessionState mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data
source=127.0.0.1;Trusted_Connection=yes" cookieless="true"
timeout="20"/>

And the SharePoint services is not installed in the machine.

*** Sent via Developersdex http://www.developersdex.com ***
Nov 22 '05 #3

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

Similar topics

18
8284
by: ZoombyWoof | last post by:
Hi. Im very new to php, and I have a problem here that I cant find the solution for. I have problems with session variables, I want some variables to maintain their value between different php...
8
3774
by: Matt | last post by:
I want to know if user disable cookie, will the session still working? Actually I remember we could disable cookie in IE before (not sure what version, but I couldn't see the option anymore. Now I...
3
1832
by: Richard P | last post by:
I am experiencing some browser weirdness. My app uses session state to hide values I prefer to keep out of the querystring. I am testing to see what happens when cookies are fully disabled in IE...
1
2320
by: ramsankar | last post by:
Hi All, When viewing my php page using IE6.0, I am losing my session data. In the first page I am setting a value to the session variable. In the next page "SOME TIME" the value of the...
5
367
by: RA | last post by:
Hi If I use session variables does this depends on cookies being sent to the client browser? If yes then what happens if the user disable cookies? Thanks
0
1623
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
9
2280
by: a | last post by:
I already posted on this subject, but I have some more information that should make the issue clearer. Config: Apache 2.x, PHP 5.1.x, Windows XP Pro A php script processes a form. Inside this...
1
1139
by: phil | last post by:
Is there a way to disable session on certain page requests at runtime? What I want to do is avoid the session cookie write in certain situations... say, for example, based on the user agent...
3
2698
by: Mufasa | last post by:
Folks, I'm having problems with my session timeout. People using my website leave it just sitting there while they do other things. They have logged in ( using Forms Authentication ) and will be...
6
3839
by: coconet | last post by:
Using ASP.NET 2.0, I want to use the code-behind to disable session state (eg I do not want to put anything in the .aspx page template). I also do not want to touch web.config. How can I do...
0
6911
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7091
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6743
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6966
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4787
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4488
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
564
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.