p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

proasp_howto thread: RE: how do I...encode query string parameters?


Message #1 by "Jenese" <jenese@l...> on Tue, 6 Mar 2001 16:58:23
you wont need to look around the MSDN mess to do this...its pretty simple

ok.. you will need to add another table "online" in your database:

online
loginid
uuid

basically the loginid will be YOUR id and how you represent your user that 
is currently logged in.
the uuid is a middle tier generated value.  that is, in your COM layer you 
will need to generate this value.

two options, it can be as simple as generating a random sequence of 
characters, or something more complex as encrypting the user's 
loginid.  either one work, and both have advantages/disadvantages.

so, in your ASP, you create your session manager object
perform the "login"..this will attempt to log the user id, first with the 
supplied (optional) uuid
if that was not successful, attempt with the username/password (optional)
if that was not sucessful (but username/password were given) give 
appropriate error message
if that username/password and uuid was not supplied you can treat it as an 
anonymous user and handle appropriately  (if you wish for you sessoin 
manager to handle anonymous connections for cick-stream analysis, or 
whatever).....--could also give the option to register the account, which 
would only simply consist of updateing the usrename and password in the db, 
from the ANON id to the user supplied values.


blah blah blah.....




At 11:58 AM 3/6/01, you wrote:
>Ok, ...do you know of a specific MSDN article? I searched on MSDN but no
>luck.
>
>
>
>
> > MSDN has some on it if you have access otherwise the microsoft site
> > probably has access to the MSDN information.
> >
> > -----Original Message-----
> > From: Jenese [mailto:jenese@e...]
> > Sent: Tuesday, February 27, 2001 4:00 PM
> > To: How To
> > Subject: how do I...encode query string parameters?
> >
> >
> > How do I / Where can I go to learn about... encoding query string
> > parameters?
> >
> > i.e., how to alter query string so that viewers see something like this:
> >  /articles/20000512.asp?WROXEMPTOKEN=3D965256Z2CDixM7Dw
> > instead of, for example, their actual log in id, like this:
> >  /desktop.asp?userid=3Djenese@l... etc
> >
> > Any pointers or suggestions would be appreciated.
> >
> >
> > Thanks,
> > -Jenese
> >
>

Robert Chartier
Author, AspFree.com
xxx-xxx-xxxx
rchartierh@a...
http://www.aspfree.com/devlinks
http://www.aspfree.com/authors/robert
http://www.aspalliance.com/nothingmn


  Return to Index