Cookieless ASP Sessions

J

JJ

Hi,

I really need to use cookieless ASP sessions with ASP 3 (IIS5)

Can I find out the session ID from the first page, then post it or send it
with the url to the next page, then at the start of the next page asp, set
the session ID from the value retrieved from the URL?

How do you manually set the session ID?

Thanks

Simon
 
S

Stuart Palmer

I think thats the whoe point of sessions (I could be wrong).
the session ID is accessible at every page without have to pass it like a
variable in the URL etc. One problem is that sessions expire......you can't
solve this problem I don't think except extending the session timeout period
which means your server gets full of non-using user until their timeout
arrives.

The session ID is automatically created, but you can create your own session
variables and access them during the session period, the difference is to
cookies is that they are stored on the server for the period of the timeout
(inactivity) or browser session expires (close browser).

Now, this is my understanding, I could be wrong so someone/people could
correct me.

I hope this does help though.

Stu
 
R

Ray at

You'd have to generate your own ID and carry it from page to page in the
querystring. You would have to carry it among all links within the
application. Read about the concepts of the cookieless session state in
asp.net, and you should understand how that works. You can do the same
thing yourself in classic ASP.

Ray at work
 
P

Phillip Windell

There are more than one kind of "cookies". Normal cookies and Session
Cookies are two different things. Session Cookies are temporary and
are only in memory and aren't written to disk. If you truly mean
"cookieless" that doesn't include Session Cookies either than you
won't have Sessions.


--

Phillip Windell [CCNA, MVP, MCP]
(e-mail address removed)
WAND-TV (ABC Affiliate)
www.wandtv.com
 
A

Aaron Bertrand [MVP]

I really need to use cookieless ASP sessions with ASP 3 (IIS5)
Can I find out the session ID from the first page, then post it or send it
with the url to the next page, then at the start of the next page asp, set
the session ID from the value retrieved from the URL?

How do you manually set the session ID?

You don't need to set a "session ID" as such... use your own. See
http://www.aspfaq.com/cart for an example.
 
M

msnews.microsoft.com

The session ID is sent as a server cookie, which is different from a user
cookie. Most browsers will allow server cookies for session, even if they
refuse user cookies. As such, you do not have to worry about this 99.9% of
the time (or more).

You can do a couple of things to hold session, otherwise, but you will have
to code them. Hidden tags and submits, or adding session on the query string
are options.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 
J

JJ

Hi,

Thanks for the replies, although they don't really answer my problem, as I
can't recode the website 'cos it's enourmous.

However, I have discovered that to use cookie-less sessions, you need an
ISAPI filter called 'Cookie Munger'.
Does anyone know where I can get this from still? All the links I found were
broken.

Thanks

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top