473,405 Members | 2,349 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,405 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 6514
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.