Re: Cookie Newbie
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43525
interpreted = N
texte = Oh yeah, thanks Robert, Gyorgy & Brian.On Wed, 18 Sep 2002 10:19:47 Dan Strong
wrote:>Ronald,>>Thanks for the detailed help. Well, my admin was cool >with me writing directly to WC's users.db, so problem >solved with minimum of hassle...>>At least I learned more about cookies :)>>-Dan>------------------------------------------->http://www.StrongGraphicDesign.com>(208) 319-0137 | Toll-free p/f 877-561-1656>>>On Wed, 18 Sep 2002 09:33:41> Inkblot Media wrote:>>Here is what I would do to make the code work on both >>areas without the need>>to change after testing.>>>>In the win98 enviroment I would open the HOST file:>>>>(generally) C:\windows\system32\etc\drivers\hosts it >>maybe in the system>>folder. I cannot recall.>>>>In this file you will see an example:>>>>127.0.0.1 localhost>>>>you can set a line so it looks like this>>>>127.0.0.1 localhost>>192.168.1.1 mydomain.com>>>>Replace the 192.168.1.1 with your IP address and also the >>mydomain.com to>>the actual domain you are working on.>>>>What this will do is cause your computer to look locally >>when you use the>>URL without the www.>>>>http://mydomain.com>>>>and to the live site when you use the www.>>>>http://www.mydomain.com>>>>Now on to the cookie.>>>>You will need to check to see if the cookie exist.>>>>[GETCOOKIE name=cookieName]>>>>If the cookie exist you show page. If the cookie does not >>exist you call the>>loggin script.>>>>[GETCOOKIE name=cookieName]>>>>[showif [GETCOOKIE name=cookieName]=]>> [include protect.inc]>>[/showif]>>>>After they do the loggin and you test against the >>username/password and all>>is ok you can set the cookie.>>>>[SETCOOKIE >>name=cookieName&value=OK&path=/&domain=mydomain.com]>>[SETCOOKIE >>name=cookieName&value=OK&path=/&domain=www.mydomain.com]>>>>By not setting the expiration date the cookie is a >>session cookie. I also>>set the cookie for both www and not, just incase.>>>>That should work, but a more simple way to do it (if you >>are passing the>>cart from page to page) is to set a header in the cart to >>the username or>>the persons name when logged in and check against it. >>This would also let>>you welcome them by calling that header.>>>>[orderfile cart=[cart]]>>[showif [header33]=]>> [include protect.inc]>>[/showif]>>>>[showif [header33]!]>> Your page goes here.>>[/showif]>>>>[/orderfile]>>>>I have a protect tag that does all the login stuff if you >>want it. Just let>>me know.>>>>------------------------------------------------------------>>Ronald Kirkland - President>>Inkblot Media - Internet Solutions Experts>>Phone: 949.400.4456 * FAX: 949.654.0269>>Visit: http://www.inkblotmedia.com>>Email: ron@inkblotmedia.com>>------------------------------------------------------------>>>>>>----- Original Message ----->>From: Dan Strong >>To: WebCatalog Talk >>Sent: Wednesday, September 18, 2002 8:41 AM>>Subject: Re: Cookie Newbie>>>>>>>Yeah, I thought that would actually be the case...so>>>something more like [SETCOOKIE name=[user]...] would be >>>a>>>little more 'secure' ?>>>>>>>I guess the value doesn't matter altough you might want>>>>to put in something that kinda secures that it's >>>_really_>>>>that guy who logged in...>>>>>>------------------------------------------------------------->>>This message is sent to you because you are subscribed >>>to>>> the mailing list .>>>To unsubscribe, E-mail to: >>>>>>To switch to the DIGEST mode, E-mail to>>>>>Web Archive of this list is at: >>>http://search.smithmicro.com/>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>>>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: >>http://search.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: >http://search.smithmicro.com/-------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Oh yeah, thanks Robert, Gyorgy & Brian.On Wed, 18 Sep 2002 10:19:47 Dan Strong wrote:>Ronald,>>Thanks for the detailed help. Well, my admin was cool >with me writing directly to WC's users.db, so problem >solved with minimum of hassle...>>At least I learned more about cookies :)>>-Dan>------------------------------------------->http://www.StrongGraphicDesign.com>(208) 319-0137 | Toll-free p/f 877-561-1656>>>On Wed, 18 Sep 2002 09:33:41> Inkblot Media wrote:>>Here is what I would do to make the code work on both >>areas without the need>>to change after testing.>>>>In the win98 enviroment I would open the HOST file:>>>>(generally) C:\windows\system32\etc\drivers\hosts it >>maybe in the system>>folder. I cannot recall.>>>>In this file you will see an example:>>>>127.0.0.1 localhost>>>>you can set a line so it looks like this>>>>127.0.0.1 localhost>>192.168.1.1 mydomain.com>>>>Replace the 192.168.1.1 with your IP address and also the >>mydomain.com to>>the actual domain you are working on.>>>>What this will do is cause your computer to look locally >>when you use the>>URL without the www.>>>>http://mydomain.com>>>>and to the live site when you use the www.>>>>http://www.mydomain.com>>>>Now on to the cookie.>>>>You will need to check to see if the cookie exist.>>>>[GETCOOKIE name=cookieName]>>>>If the cookie exist you show page. If the cookie does not >>exist you call the>>loggin script.>>>>[GETCOOKIE name=cookieName]>>>>[showif [GETCOOKIE name=cookieName]=]>> [include protect.inc]>>[/showif]>>>>After they do the loggin and you test against the >>username/password and all>>is ok you can set the cookie.>>>>[SETCOOKIE >>name=cookieName&value=OK&path=/&domain=mydomain.com]>>[SETCOOKIE >>name=cookieName&value=OK&path=/&domain=www.mydomain.com]>>>>By not setting the expiration date the cookie is a >>session cookie. I also>>set the cookie for both www and not, just incase.>>>>That should work, but a more simple way to do it (if you >>are passing the>>cart from page to page) is to set a header in the cart to >>the username or>>the persons name when logged in and check against it. >>This would also let>>you welcome them by calling that header.>>>>[orderfile cart=[cart]]>>[showif [header33]=]>> [include protect.inc]>>[/showif]>>>>[showif [header33]!]>> Your page goes here.>>[/showif]>>>>[/orderfile]>>>>I have a protect tag that does all the login stuff if you >>want it. Just let>>me know.>>>>------------------------------------------------------------>>Ronald Kirkland - President>>Inkblot Media - Internet Solutions Experts>>Phone: 949.400.4456 * FAX: 949.654.0269>>Visit: http://www.inkblotmedia.com>>Email: ron@inkblotmedia.com>>------------------------------------------------------------>>>>>>----- Original Message ----->>From: Dan Strong >>To: WebCatalog Talk >>Sent: Wednesday, September 18, 2002 8:41 AM>>Subject: Re: Cookie Newbie>>>>>>>Yeah, I thought that would actually be the case...so>>>something more like [SETCOOKIE name=[user]...] would be >>>a>>>little more 'secure' ?>>>>>>>I guess the value doesn't matter altough you might want>>>>to put in something that kinda secures that it's >>>_really_>>>>that guy who logged in...>>>>>>------------------------------------------------------------->>>This message is sent to you because you are subscribed >>>to>>> the mailing list .>>>To unsubscribe, E-mail to: >>>>>>To switch to the DIGEST mode, E-mail to>>>>>Web Archive of this list is at: >>>http://search.smithmicro.com/>>>>>>------------------------------------------------------------->>This message is sent to you because you are subscribed to>> the mailing list .>>To unsubscribe, E-mail to: >>>>To switch to the DIGEST mode, E-mail to >>>>Web Archive of this list is at: >>http://search.smithmicro.com/>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >>To switch to the DIGEST mode, E-mail to >>Web Archive of this list is at: >http://search.smithmicro.com/-------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Dan Strong
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
rotating thumbnails (1997)
Limit to variables passed on to next tpl? (1998)
WebCat2.0 [format thousands .0f] no go (1997)
[OT] Linux -> Winderz (2005)
RequiredFields template (1997)
What would be sweet is (2003)
[/application] error? (1997)
Sendmail (1998)
Simple Database close connection (2001)
WebCat2: Items xx to xx shown, etc. (1997)
RE: Problems with dbcatalog.exe (1997)
Statistics... (2004)
[Announce] WebCatalog 3.0 Beta Program (1998)
Server Load (2000)
Re1000002: Setting up shop (1997)
serial number generation (1997)
Add message to Order (1997)
WebCat2 several catalogs? (1997)
Re:no [search] with NT (1997)
Search design (1997)