Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

ASP Session Object without cokies

I'm working on project where is used ASP Session Object, but Session Object
keeps Session ID in cookie some of user browsers does'n support cookies, but
I can't loose this users. How I can't have Session Object without cookies
[254 byte] By [Kiril Jovchev] at [2007-11-9 15:36:16]
# 1 Re: ASP Session Object without cokies
without cookies the sessions dont really work, you could use an old IIS 3
tool called cookie munger, or develop a db system that maintains the session
values for you.

Regards

John Timney (MVP)

Kiril Jovchev <cyrilo@netage.bg> wrote in message
news:396ef378@news.dev-archive.com...
> I'm working on project where is used ASP Session Object, but Session
Object
> keeps Session ID in cookie some of user browsers does'n support cookies,
but
> I can't loose this users. How I can't have Session Object without cookies
>
>
John Timney -MVP at 2007-11-11 23:41:04 >
# 2 Re: ASP Session Object without cokies
In short no. You can not maintain the traditional sessionID. You must write
your own mechanism to pass information from page to page in your application.
There are two general ways to do this:

1) Create a COM componant that creates a guid, which will be your users
sessionid. Then create a session Table that temporarily stores the users
information including the guid. From then on you can just pass the guid
from page to page until you want to stop the session. I am sure you can
figure the rest out.

2) Add parameters to a URL's query string. For example:
http://MyServer/MyApp/start.asp?name=Jeff
Some browsers, however, will discard any explicit parameters passed in a
query string if a form is submitted with the GET method.

3) Add hidden values to a form. For example, the following HTML form contains
a hidden control, which does not appear on the actual form and remains invisible
in the user's Web browser. The form passes a user identification value, in
addition to the information supplied by the user, by using the HTTP POST
method.
<FORM METHOD="POST" ACTION="/scripts/inform.asp">
<INPUT TYPE="text" NAME="city" VALUE="">
<INPUT TYPE="text" NAME="country" VALUE ="">
<INPUT TYPE="hidden" NAME="userid" VALUE= <%= UserIDNum(i) %>
<INPUT TYPE="submit" VALUE="Enter">
This method requires all link destinations that pass user information to
be coded as HTML forms.

if you want some more info on creating the dll eMail me.

"Kiril Jovchev" <cyrilo@netage.bg> wrote:
>I'm working on project where is used ASP Session Object, but Session Object
>keeps Session ID in cookie some of user browsers does'n support cookies,
but
>I can't loose this users. How I can't have Session Object without cookies
>
>
MCSDon at 2007-11-11 23:42:09 >
# 3 Re: ASP Session Object without cokies
The Session Object is a collection, after login in the user
create new fields in collection usrID,usrPwd and veify is
every time with <include some security file>
Oleg at 2007-11-11 23:43:02 >