Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cookieless messes up session - what's going on?

0 views
Skip to first unread message

Robert Paris

unread,
Mar 8, 2001, 12:48:50 PM3/8/01
to
When I use an out of process session, but set cookieless="false" then
everything works.
The moment I change my config.web to have cookieless="true" none of my
session variables are saved from page to page. it logs me out because it
cannot find the session variables anymore.
any ideas?


Al Manint

unread,
Mar 8, 2001, 2:11:29 PM3/8/01
to
A Session is dictated by the cookie. How else will you identify them? You
can embed the id in the web pages but you have to set that up. If you want
IIS to do it for you - you need cookies.

--Al

"Robert Paris" <Som...@NowhereWorld.com> wrote in message
news:uuc3Fi$pAHA.1984@tkmsftngp04...

Robert Paris

unread,
Mar 8, 2001, 2:15:11 PM3/8/01
to
how do you set it up?
I thought asp.net offers that capability itself?

"Al Manint" <al_m...@nospam.yahoo.com> wrote in message
news:uxF60NAqAHA.844@tkmsftngp05...

Microsoft Developer Support

unread,
Mar 8, 2001, 3:30:54 PM3/8/01
to
Take a look at the following article:


http://msdn.microsoft.com/library/default.asp?URL=/library/welcome/dsmsdn/as
p12282000.htm

it should help get you started with cookieless sessions.. (just remember to
use relative links in your pages)

John Peacock

unread,
Mar 8, 2001, 4:51:26 PM3/8/01
to
I used this article to setup my config.web file and it still does not work
in cookieless mode.

Here is the tag I used...
<sessionstate mode="inproc" cookieless="true" timeout="30"
server="localhost" port="42424" />

I assume that the server and port are not required for "inproc", but I added
them anyway to make that this was not the problem.

Session variables persist from page to page when cookieless property is set
to "false". When I change the property to "true", then the URL gets the
SessionID put in it, but the values do not persist.

Is there a setting that I am missing or is this a bug?


"Microsoft Developer Support" <tezv...@microsoft.com> wrote in message
news:4zDgw6A...@cppssbbsa01.microsoft.com...

Robert Paris

unread,
Mar 8, 2001, 5:39:38 PM3/8/01
to
I have the same problem as john peacock

"John Peacock" <JohnP...@yahoo.com> wrote in message
news:OzluNoBqAHA.1492@tkmsftngp03...

Robert Paris

unread,
Mar 8, 2001, 5:41:33 PM3/8/01
to
That article on MSDN is outdated. The attribute "mode" no longer exists (as
of beta 1).


prau

unread,
Mar 8, 2001, 8:18:31 PM3/8/01
to
Before you reply the next time, read up on the subject. Cookieless sessions
indeed do exist on ASP.NET... You're stuck on the plain old ASP world.

John Peacock

unread,
Mar 8, 2001, 8:18:38 PM3/8/01
to
Do you know what the new setting is? I think I saw an article that had
something like
inproc="true" sqlstate="false"

This gives me an idea for a wish list feature:
What if the server could detect if the client has cookies enabled? If the
client has cookies enabled, then it will use the cookie to store the Session
ID...if not, then use the cookie-less method.


"Robert Paris" <Som...@NowhereWorld.com> wrote in message

news:uqhWuUCqAHA.1396@tkmsftngp05...

Robert Paris

unread,
Mar 9, 2001, 10:01:12 AM3/9/01
to
John,
I have good news for you. It can!
You can alter your config.web on the fly. And you can tell if someone uses
cookies or not. Put the two together...

But we're still at the same problem - has anyone gotten "cookieless" to
work?


0 new messages