By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,760 Members | 1,630 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,760 IT Pros & Developers. It's quick & easy.

Cookieless ASP Sessions

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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

"JJ" <nospam> wrote in message
news:3f**********************@news.dial.pipex.com. ..
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

Jul 19 '05 #2

P: n/a
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

"JJ" <nospam> wrote in message
news:3f**********************@news.dial.pipex.com. ..
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

Jul 19 '05 #3

P: n/a
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]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com

"JJ" <nospam> wrote in message
news:3f**********************@news.dial.pipex.com. ..
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

Jul 19 '05 #4

P: n/a
> 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.
Jul 19 '05 #5

P: n/a
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!
************************************************** ********************
"JJ" <nospam> wrote in message
news:3f**********************@news.dial.pipex.com. ..
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

Jul 19 '05 #6

P: n/a
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

"JJ" <nospam> wrote in message
news:3f**********************@news.dial.pipex.com. ..
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

Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.