Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2003, 09:38 AM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default session management without cookies

Hello there!

Is there anyway i can use ASP session management when my client can't accept cookies? I had the idea of maybe passing the session ID in a variable in a form when the page is built on the server and then recuperating it to recall the session context. Would that be feasible?
and if so, how in the world is that done

BTW I can't execute any code on my client! It's a mobile phone...

If anyone has an idea, please feel free to share!;)

Thanks a bunch!

"Don't you ever feel as though your computer were possessed?"
 
Old November 13th, 2003, 04:26 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can't use ASP's native session management without cookies.

If you constructed your own session management you could store a session value in a form. You would have to make sure everything that someone does in the application caused a form submission however. That might not be as easy as it sounds. With a browsing device like a phone however, it might be easier than with a standard web browser.

The other option is to embed the session ID in the querystring of the URL for everything.



Peter
------------------------------------------------------
Work smarter, not harder.
 
Old November 14th, 2003, 05:46 AM
Registered User
 
Join Date: Nov 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Peter,
I was kindda whishing I wouldn't get that answer but oh well
About your other option with the session ID in the querystring and creating my own session management scheme, does it imply that I have a temporary database somewhere that contains the session info and that I call onto to reestablish the context? or smthg like that...?

Cheers,
Marilyn

"Don't you ever feel as though your computer were possessed?"
 
Old November 14th, 2003, 03:46 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

That's typically how it's done and that's the way I'd recommend doing it. You create a DB table for retaining all that data.

I'm rather surprised that a mobile phone that is web enabled wouldn't support cookies.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Session management Gemz .NET Framework 2.0 1 October 26th, 2008 04:56 AM
Session Vs ASP cookies mikedeepak Classic ASP Professional 1 June 19th, 2006 12:25 PM
Session Management yohandh General .NET 2 December 12th, 2005 10:45 PM
Session without cookies kumar_sampath Pro JSP 2 October 8th, 2004 10:02 AM
Session management texasraven ASP.NET 1.x and 2.0 Application Design 6 April 21st, 2004 04:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.