473,387 Members | 1,575 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,387 software developers and data experts.

setting session cookie's properties

I want to set the asp session id path property.
how can I do that?

I mean, asp session id is stored in a cookie and like any other cookie
it should have properties (or attributes), how can I control it?

Yossi.
Jul 22 '05 #1
5 1961
Are you talking about cookies (stored on the visitors computer), or
"session" cookies (stored in the servers memory)?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Yossi" <yo***@pansw.com> wrote in message
news:e5*************************@posting.google.co m...
I want to set the asp session id path property.
how can I do that?

I mean, asp session id is stored in a cookie and like any other cookie
it should have properties (or attributes), how can I control it?

Yossi.

Jul 22 '05 #2
Steven Burn wrote on 21 nov 2004 in
microsoft.public.inetserver.asp.general:
Are you talking about cookies (stored on the visitors computer), or
"session" cookies (stored in the servers memory)?


Not quite.

Session cookies, like all cookies, are stored at the client.

A session cookie [= a cookie, set without explicit expiration] expires when
the connecion is lost, if the browser behaves as intended. Some call it a
ram-cookie, because it is not stored on the client's hard disk.

A session variable [did you mean that?] however is stored on the server and
is kept till the session is timed out or abandoned. However a session is
only viable while and if the client keeps the session-id cookie, which to
the client is a normal session cookie [see above].
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 22 '05 #3
Cheers for the correction Evertjan ;o) (and yep, I meant session variables
(gotten used to calling them session cookies for some reason).

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Steven Burn wrote on 21 nov 2004 in
microsoft.public.inetserver.asp.general:
Are you talking about cookies (stored on the visitors computer), or
"session" cookies (stored in the servers memory)?
Not quite.

Session cookies, like all cookies, are stored at the client.

A session cookie [= a cookie, set without explicit expiration] expires

when the connecion is lost, if the browser behaves as intended. Some call it a
ram-cookie, because it is not stored on the client's hard disk.

A session variable [did you mean that?] however is stored on the server and is kept till the session is timed out or abandoned. However a session is
only viable while and if the client keeps the session-id cookie, which to
the client is a normal session cookie [see above].
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 22 '05 #4
Hi guys,

I was talking about the session id, which is stored as a cookie.

I cannot control the value of the session id (and I do not want to do
so) but I want to control it's attributes.

Can I do that?


"Steven Burn" <pv*@noyb.com> wrote in message news:<uP**************@TK2MSFTNGP09.phx.gbl>...
Cheers for the correction Evertjan ;o) (and yep, I meant session variables
(gotten used to calling them session cookies for some reason).

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
Steven Burn wrote on 21 nov 2004 in
microsoft.public.inetserver.asp.general:
Are you talking about cookies (stored on the visitors computer), or
"session" cookies (stored in the servers memory)?


Not quite.

Session cookies, like all cookies, are stored at the client.

A session cookie [= a cookie, set without explicit expiration] expires

when
the connecion is lost, if the browser behaves as intended. Some call it a
ram-cookie, because it is not stored on the client's hard disk.

A session variable [did you mean that?] however is stored on the server

and
is kept till the session is timed out or abandoned. However a session is
only viable while and if the client keeps the session-id cookie, which to
the client is a normal session cookie [see above].
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 22 '05 #5
Yossi wrote:
I was talking about the session id, which is stored as a cookie.

I cannot control the value of the session id (and I do not want to do
so) but I want to control it's attributes.


Any cookie can be tweaked on the client side. Assuming you can consistently
identify the ASP session cookie, what advantage does controlling give you,
beyond persistence?

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
2
by: bagsmode | last post by:
Hi, I'm trying to set a session cookie and then redirect, however I get the error: Status: 302 Moved Location: /index.cgi I thought I recall getting an error like this when I first tried...
3
by: Enoch Chan | last post by:
I would like to set a Session variable to a value. In Vbscript it should be Session("ZoomValue")=500 How can I set this session variable by using Javascript? Thanks
4
by: Morten | last post by:
Hi! I've been implementing forms based authentication in a web project. It works pretty good. When I log on by clicking the "login" button the following code is executed: if...
6
by: somaboy mx | last post by:
Hello I need people to be able to complete long text blocks in my cms before their session times out. From the php documentation I gather that ini directive session.gc_maxlifetime would be the...
3
by: Paul | last post by:
I'm having a problem with the session being reset after setting a cookie. This is not supposed to happen. If I comment out the Add line below the site works normally, the session persists. Help. ...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
4
by: SevDer | last post by:
Hi, I've done some coding in my web application however right now for an unknown reason my asp.net 2.0 site is not setting asp.net_sessionid cookie and as a result, I am losing the session data...
3
by: Jankie | last post by:
Hi I have disabled cookies in my browser just to test and discovered that session cookies are still set by php.I was looking for an example to set a session id cookie manually but couldnt find it.I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.