473,804 Members | 3,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SessionID Changes in production machine....help

Help,

I posted another thread here asking help because I was losing my session
information(got no response). After a lot of searching on different sites I
discovered that my sessionID changes everytime I submit.
It doesn't happend with running it inside the visual studio, just when
running it as a site directly with IE.
Anyways, I found out if I set
cookieless="tru e"
it solves the problem. However I am not happy with this solution even though
I don't use cookies, but I have another project
with cookieless="fal se"
that works just fine.

So I like to hear some suggestions/insight on this from those experts out
there to at least understand why or find a solution.

thanks in advance,
Reza
Nov 19 '05 #1
5 1460
Is your browser configured to accept cookies ?

If it isn't, ASP.NET will interpret each access
as coming from a new browser.

cookieless="tru e" enables ASP.NET to maintain state
even if the browser isn't configured to accept cookies.

cookieless="fal se" works only if the browser accepts cookies.

Everything is working as it should. It's your call to make.
Your choice.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:82******** *************** ***********@mic rosoft.com...
Help,

I posted another thread here asking help because I was losing my session
information(got no response). After a lot of searching on different sites I
discovered that my sessionID changes everytime I submit.
It doesn't happend with running it inside the visual studio, just when
running it as a site directly with IE.
Anyways, I found out if I set
cookieless="tru e"
it solves the problem. However I am not happy with this solution even though
I don't use cookies, but I have another project
with cookieless="fal se"
that works just fine.

So I like to hear some suggestions/insight on this from those experts out
there to at least understand why or find a solution.

thanks in advance,
Reza

Nov 19 '05 #2
My browser is configured to accept cookies, so really I shouldn't have to
change the setting of cookieless from default value of false to true!

So the question is, is there some thing else that could cause the sessionid
to keep changing with each sumbit?

"Juan T. Llibre" wrote:
Is your browser configured to accept cookies ?

If it isn't, ASP.NET will interpret each access
as coming from a new browser.

cookieless="tru e" enables ASP.NET to maintain state
even if the browser isn't configured to accept cookies.

cookieless="fal se" works only if the browser accepts cookies.

Everything is working as it should. It's your call to make.
Your choice.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:82******** *************** ***********@mic rosoft.com...
Help,

I posted another thread here asking help because I was losing my session
information(got no response). After a lot of searching on different sites I
discovered that my sessionID changes everytime I submit.
It doesn't happend with running it inside the visual studio, just when
running it as a site directly with IE.
Anyways, I found out if I set
cookieless="tru e"
it solves the problem. However I am not happy with this solution even though
I don't use cookies, but I have another project
with cookieless="fal se"
that works just fine.

So I like to hear some suggestions/insight on this from those experts out
there to at least understand why or find a solution.

thanks in advance,
Reza


Nov 19 '05 #3
re:
is there some thing else that could cause
the sessionid to keep changing with each submit?
There is nothing that could cause that, except the cookieless setting.

1. Make sure your web.config syntax is correct.

2. Check your browser settings again.

Are you using InProc Session State ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:35******** *************** ***********@mic rosoft.com... My browser is configured to accept cookies, so really I shouldn't have to
change the setting of cookieless from default value of false to true!

So the question is, is there some thing else that could cause the sessionid
to keep changing with each sumbit? "Juan T. Llibre" wrote:
Is your browser configured to accept cookies ?

If it isn't, ASP.NET will interpret each access
as coming from a new browser.

cookieless="tru e" enables ASP.NET to maintain state
even if the browser isn't configured to accept cookies.

cookieless="fal se" works only if the browser accepts cookies.

Everything is working as it should. It's your call to make.
Your choice.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:82******** *************** ***********@mic rosoft.com...
> Help,
>
> I posted another thread here asking help because I was losing my session
> information(got no response). After a lot of searching on different sites I
> discovered that my sessionID changes everytime I submit.
> It doesn't happend with running it inside the visual studio, just when
> running it as a site directly with IE.
> Anyways, I found out if I set
> cookieless="tru e"
> it solves the problem. However I am not happy with this solution even though
> I don't use cookies, but I have another project
> with cookieless="fal se" that works just fine.
>
> So I like to hear some suggestions/insight on this from those experts out
> there to at least understand why or find a solution.
>
> thanks in advance,
> Reza

Nov 19 '05 #4
Juan,
Here is the exact code:
<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>
as it gives the problem, but when I change the cookieless="tru e" it works
fine.
However, I have another project with the same exact setting that uses
cookies which works fine!? (so it couldn't be the browser settings)

Just one more thing, this problem started/noticed when I added a 2nd grid to
some of my pages where the arraylist feeding the grid is being kept in
session till finalized to database.
"Juan T. Llibre" wrote:
re:
is there some thing else that could cause
the sessionid to keep changing with each submit?


There is nothing that could cause that, except the cookieless setting.

1. Make sure your web.config syntax is correct.

2. Check your browser settings again.

Are you using InProc Session State ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:35******** *************** ***********@mic rosoft.com...
My browser is configured to accept cookies, so really I shouldn't have to
change the setting of cookieless from default value of false to true!

So the question is, is there some thing else that could cause the sessionid
to keep changing with each sumbit?

"Juan T. Llibre" wrote:
Is your browser configured to accept cookies ?

If it isn't, ASP.NET will interpret each access
as coming from a new browser.

cookieless="tru e" enables ASP.NET to maintain state
even if the browser isn't configured to accept cookies.

cookieless="fal se" works only if the browser accepts cookies.

Everything is working as it should. It's your call to make.
Your choice.

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:82******** *************** ***********@mic rosoft.com...
> Help,
>
> I posted another thread here asking help because I was losing my session
> information(got no response). After a lot of searching on different sites I
> discovered that my sessionID changes everytime I submit.
> It doesn't happend with running it inside the visual studio, just when
> running it as a site directly with IE.
> Anyways, I found out if I set
> cookieless="tru e"
> it solves the problem. However I am not happy with this solution even though
> I don't use cookies, but I have another project
> with cookieless="fal se" that works just fine.
>
> So I like to hear some suggestions/insight on this from those experts out
> there to at least understand why or find a solution.
>
> thanks in advance,
> Reza


Nov 19 '05 #5
re:
Just one more thing, this problem started/noticed when I added
a 2nd grid to some of my pages where the arraylist feeding the
grid is being kept in session till finalized to database.
Aha! The mystery begins to unravel.

Not having your code to look at, I can only suggest that you
start tinkering with it, until you find the reason for the sessions
being reinitialized.

Maintaining state in objects stored in the Session Object is tricky.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:F0******** *************** ***********@mic rosoft.com... Juan,
Here is the exact code:
<sessionState
mode="InProc"
stateConnection String="tcpip=1 27.0.0.1:42424"
sqlConnectionSt ring="data source=127.0.0. 1;Trusted_Conne ction=yes"
cookieless="fal se"
timeout="20"
/>
as it gives the problem, but when I change the cookieless="tru e" it works
fine.
However, I have another project with the same exact setting that uses
cookies which works fine!? (so it couldn't be the browser settings)

Just one more thing, this problem started/noticed when I added a 2nd grid to
some of my pages where the arraylist feeding the grid is being kept in
session till finalized to database.
"Juan T. Llibre" wrote:
re:
> is there some thing else that could cause
> the sessionid to keep changing with each submit?


There is nothing that could cause that, except the cookieless setting.

1. Make sure your web.config syntax is correct.

2. Check your browser settings again.

Are you using InProc Session State ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
=============== =======

"Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
news:35******** *************** ***********@mic rosoft.com...
> My browser is configured to accept cookies, so really I shouldn't have to
> change the setting of cookieless from default value of false to true!
>
> So the question is, is there some thing else that could cause the sessionid
> to keep changing with each sumbit?

> "Juan T. Llibre" wrote:
>
>> Is your browser configured to accept cookies ?
>>
>> If it isn't, ASP.NET will interpret each access
>> as coming from a new browser.
>>
>> cookieless="tru e" enables ASP.NET to maintain state
>> even if the browser isn't configured to accept cookies.
>>
>> cookieless="fal se" works only if the browser accepts cookies.
>>
>> Everything is working as it should. It's your call to make.
>> Your choice.
>>
>>
>>
>> Juan T. Llibre
>> ASP.NET MVP
>> http://asp.net.do/foros/
>> Foros de ASP.NET en Español
>> Ven, y hablemos de ASP.NET...
>> =============== =======
>>
>> "Reza Solouki" <Re*********@di scussions.micro soft.com> wrote in message
>> news:82******** *************** ***********@mic rosoft.com...
>> > Help,
>> >
>> > I posted another thread here asking help because I was losing my session
>> > information(got no response). After a lot of searching on different sites I
>> > discovered that my sessionID changes everytime I submit.
>> > It doesn't happend with running it inside the visual studio, just when
>> > running it as a site directly with IE.
>> > Anyways, I found out if I set
>> > cookieless="tru e"
>> > it solves the problem. However I am not happy with this solution even though
>> > I don't use cookies, but I have another project
>> > with cookieless="fal se" that works just fine.
>> >
>> > So I like to hear some suggestions/insight on this from those experts out
>> > there to at least understand why or find a solution.
>> >
>> > thanks in advance,
>> > Reza


Nov 19 '05 #6

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

Similar topics

0
1072
by: Rick Curry | last post by:
We have made changes to an ASP.Net app, tested it on our testing platform and moved it to our production platform. In testing it on the other machine, the app fails when we pull session data back from a SQL Server table keyed on the SessionID. We added loggin statements to the code to see what was going on and found that after reading a table for information to fill a listbox, having the user select one of those items which causes another...
1
1931
by: Stephen Miller | last post by:
On my development machine (where the group 'Everyone' has full access to every directory), the following code successfully shells to a console application: Dim objShell As System.Diagnostics.Process = New System.Diagnostics.Process() With objShell .StartInfo.FileName = "C:\Project\MyApp\MyApp.exe" .StartInfo.Arguments = " 123" .StartInfo.WorkingDirectory = "C:\Project\MyApp\"
2
4142
by: Greg Allen | last post by:
I know this has been discussed before, and have found some documentation about it on the web. But nothing has fixed my problem. I am running the 1.1 .NET framework, SP1. I have a web application that I would like to place on a remote shared drive on a different computer. I had problems with that, so I simplified it so that I am trying to use a shared drive on the SAME computer. That doesn't work
8
2006
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping cart. I have copy / pasted the code into a new site. Everything is working, EXCEPT for the shopping cart holding the SessionID. I have watched the variable, and each time I hit the 'Update' button in a datalist, the session ID changes. That is...
3
2069
by: dotnettester | last post by:
Hi, Is there a way, I can get a new sessionid without user closing the browser window? I have a webpage, which logs user input and sessionid. If the user does not close the browser and if someone else uses the same browser window, I can not differentiate between different user inputs, because the sessionid is same. Is there a way, I can force a new sessionid, when a certain page is viewed?
4
8397
by: Jerad Rose | last post by:
I have searched high and low, and I can't find anybody having this problem, so I'm sure it's something really simple I'm overlooking. In fact, I've seen many posts of people trying to set up the exact problem I'm having. My ASP.NET (2.0) SessionID is being reset every time I start a new browser. I have tested this with a totally clean page, and totally clean Web.config file, so that I know I'm using all of the default settings (mode =...
0
4965
by: Radu | last post by:
Hi. I have finished a web-site - and it runs fine on my dev machine. I have deployed it onto the server, and now I have this (which, by the way, doesn't seem to happen all the time - sometimes I can see other errors): _______________________________________________ Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your...
2
9255
by: =?Utf-8?B?QW5kZXJzIEJvdmlu?= | last post by:
Hi, I am trying to get the SessionId of processes on a remote machine using System.Diagnostics.Process: foreach (Process p in Process.GetProcesses("remotemachine")) { Console.WriteLine(p.SessionId.ToString()); }
0
9591
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10331
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10087
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9166
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7631
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6861
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5667
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.