473,238 Members | 1,670 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,238 software developers and data experts.

Cookieless ASP Sessions

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
6 6503
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
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
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
> 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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: djluker | last post by:
Does anyone know of a way to implement cookieless sessions in ASP.net by tacking on the session ID to the querystring, rather than setting cookieless="true" in the web.config file? I see that some...
3
by: Scott | last post by:
Hello, we are having problems displaying non-aspx files (images, style sheets) since we have upgraded to the 1.1 framework when using a cookieless session (sessionID in the url). Check out...
2
by: Tom Pester | last post by:
I experimented/researched cookieless sessions and tried it on my website. I expected the switch to cookieless sessions to be transparent but this isn' t the case at all: 1) Forms based...
2
by: Steve Franks | last post by:
According to the docs you tell ASP.NET to use cookieless sessions by setting a value in the config.web file. However, what if I wanted to determine at run time whether or not I wanted to use...
10
by: Anthony Williams | last post by:
Hi gang, This one looks like a bug :o( As you may or may not know, setting session management in web.config to use cookieless sessions causes the ASP.NET runtime to munge a session ID into...
0
by: Jerad Rose | last post by:
I have an odd scenario. I am working on a hybrid site that uses various development platforms, namely traditional ASP and Lasso (a Mac scripting language). The site uses its own custom sessions...
2
by: rk325 | last post by:
I have a question about cookies & browser permissions and turning off cookies when creating a web site (cookieless mode in web.config). I have a web site that of course uses Session variables....
0
by: Chris Gill | last post by:
I'm trying to use cookieless sessions in asp.net using the InProc mode (for various reasons it is not desirable for us to use the other modes if it is possible to avoid them). My problem revolves...
0
by: David H. | last post by:
Is there any way to have a user use cookieless sessions at runtime on a case-by-case basis? Or do cookieless sessions have to be turned on globally in the web.config for all users of the web...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.