Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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 December 11th, 2004, 12:52 PM
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Initiating a Session for a Remote Shopper

On a website running on IIS 4.0 and Windows NT 4.0, I'm working to enable it for remote shopping and need to initiate a session on the site for a remote user and to log that remote user onto the site using that session.
How do I do this? I'm thinking I can send an http request to site and capture the SessionID generated and send SessionID back in the request to log the user on. If this is not the correct forum, what is a good forum to post this question?


 
Old December 11th, 2004, 06:11 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;initiate a session on the site for a remote user and to log that remote user onto the site using that session

BTW: Any values held in the session object expire after the session has finished, every new visit is a new session.

If its a shopping site, your users would feel more secure logging in using a username/password authenticating against values in a DB from an initial sign up, have I understood your post correctly?

;;;what is a good forum to post this question?
This would be the correct forum


Wind is your friend
Matt
 
Old December 13th, 2004, 11:03 AM
Registered User
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Matt, are you confirming my approach? If so, how do you initiate a session, capture that session's ID and pass this session ID in subsequent call logging the user on?



 
Old December 13th, 2004, 06:15 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Matt, are you confirming my approach?
No, not exactly. My suggstion would be as it was above:

If its a shopping site, your users would feel more secure logging in using a username/password authenticating against values in a DB from an initial sign up. Use session varibales sparingly to carry values 'once logged in' from page to page. An example:

1..User visits your site and registers by entering a user name and password and any other info you ask for(this logs them on)
2..Once logged on I would carry a userlevel and or a user ID (the unique field representing them in the user table) from page to page in a session variable Eg;Run sql to get records then:
session("uId") = recordSetName("id")
session("uLevel) = recorSetName("ul")
3..Now on any given page you may query the DB for any information regarding this user on thier session("uId") and show information relating to thier session("uLevel) (an integer EG; 0 = admin, 1 = general, 2 = readonly...)

In addition, as mentioned above. Any values held in the session object expire after the session has finished, every new visit is a new session. You can not identify a user based on a previous session or the variabled it contained unless they were inserted into the data base or you created a cookie on the clients machine (cookies not ideal)




Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
remote registry carelfrik Access VBA 2 October 28th, 2005 02:18 PM
session and cookie problem (empty session file) msincan BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 February 27th, 2005 05:31 PM
Remote session active??? jaywhy13 Classic ASP Basics 2 January 30th, 2005 02:25 AM
remote packages naveen Servlets 4 October 9th, 2004 09:03 AM
Remote Registry Kep C++ Programming 3 September 18th, 2003 05:39 PM





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