Re: Cookie Newbie
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 43520
interpreted = N
texte = Hmmmm, I'll ask my admin what he thinks about this...it would be SOOOO much easier... thanks.On Wed, 18 Sep 2002 11:36:23 ROBERT MCPEAK
wrote:>Uh, I think you could probably use WebDNA to write the >new login>information directly to the the Users.db (whatever it's >called), thereby>avoiding the need to pass any info to your sys admin. > There may be>minor permissions problem here, but maybe not. Or, maybe >this isn't>possible at all. I dunno. Think I did it once, back >when I was in my>WebCatalog prime.>>>>> webdna@stronggraphicdesign.com 09/18/02 11:12AM >>>>Hi all,>>[discalimer]>Ok, I need to do something that I think should be pretty >simple...prob is I have never done it before and I am >currently pressed for time...have read/re-read the docs >and am currently looking through the archives, but >additional real-time clarification would be appreciated >beyond comprehension. TIA.>[/disclaimer]>>After logging in succesfully, I want to set a simple >session cookie to the user's machine and then allow them >access to certain pages based on the existance of the >cookie (And though it would be oh so much easier, I >cannot >just use [protect...] [showif [username]=blah blah...] >because I do not admin my own server and would have to >pass along the login info to my admin each time a new >user >signs up...not efficient...). So, as I understand it I >would do something like this:>>After successful login:>[SETCOOKIE >name=Login&value=TRUE&path=/&domain=www.mydomain.com]>>Then, on the pages requiring the cookie:>[GETCOOKIE name=Login]>>I do not fully understand the following even after mild >testing:>>1) For dev purposes, the domain is /localhost/mydomain/, >but on the server, of course, it's www.mydomain.com. How >do I set this to be able to test >locally?...&domain=localhost/mydomain/>>2) Since I don't care what's in the cookie, only that it >exists, is the VALUE parameter useless? I mean if >[GETCOOKIE name=Login] does that mean it passes a value >of >TRUE back to the browser? Am I splitting hairs? What *IF* >C-A-T really spelled dog...>>I'm tired and confused, sorry.>>-Dan>------------------------------------------->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/>>------------------------------------------------------------->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:
Hmmmm, I'll ask my admin what he thinks about this...it would be SOOOO much easier... thanks.On Wed, 18 Sep 2002 11:36:23 ROBERT MCPEAK wrote:>Uh, I think you could probably use WebDNA to write the >new login>information directly to the the Users.db (whatever it's >called), thereby>avoiding the need to pass any info to your sys admin. > There may be>minor permissions problem here, but maybe not. Or, maybe >this isn't>possible at all. I dunno. Think I did it once, back >when I was in my>WebCatalog prime.>>>>> webdna@stronggraphicdesign.com 09/18/02 11:12AM >>>>Hi all,>>[discalimer]>Ok, I need to do something that I think should be pretty >simple...prob is I have never done it before and I am >currently pressed for time...have read/re-read the docs >and am currently looking through the archives, but >additional real-time clarification would be appreciated >beyond comprehension. TIA.>[/disclaimer]>>After logging in succesfully, I want to set a simple >session cookie to the user's machine and then allow them >access to certain pages based on the existance of the >cookie (And though it would be oh so much easier, I >cannot >just use [protect...] [showif [username]=blah blah...] >because I do not admin my own server and would have to >pass along the login info to my admin each time a new >user >signs up...not efficient...). So, as I understand it I >would do something like this:>>After successful login:>[SETCOOKIE >name=Login&value=TRUE&path=/&domain=www.mydomain.com]>>Then, on the pages requiring the cookie:>[GETCOOKIE name=Login]>>I do not fully understand the following even after mild >testing:>>1) For dev purposes, the domain is /localhost/mydomain/, >but on the server, of course, it's www.mydomain.com. How >do I set this to be able to test >locally?...&domain=localhost/mydomain/>>2) Since I don't care what's in the cookie, only that it >exists, is the VALUE parameter useless? I mean if >[GETCOOKIE name=Login] does that mean it passes a value >of >TRUE back to the browser? Am I splitting hairs? What *IF* >C-A-T really spelled dog...>>I'm tired and confused, sorry.>>-Dan>------------------------------------------->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/>>------------------------------------------------------------->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:
Re:WebCat Talk Arhives... (1998)
Opposite of Summ=T? (2000)
[WebDNA] Using WebDNA with MAMP (2010)
Persistant Connections (2000)
SSL Certificates (2004)
Emailer port change (1997)
Requiring that certain fields be completed (1997)
Date search bug (1998)
PCS Frames (1997)
searching by date (1998)
& Aftermath (2000)
Tracking System? (1997)
Security Tip (1996)
WebCat name recognition (was MacFinder -- a new WebDNAweb site) (1998)
[WebDNA] WebDNA on LiveCD ... (2008)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
NewCart+Search with one click ? (1997)
Webcat Manual and TeaRoom Examples Uses Different Examples. (1997)
retain raw [cart] submitted value (2004)
Problems getting parameters passed into email. (1997)