Re: [WebDNA] setcookie then redirect
This WebDNA talk-list message is from 2013
It keeps the original formatting.
numero = 110370
interpreted = N
texte = Same here. I've used this technique since day one, usually redirecting to [thisurl]>WebDNA 6.2 / CentOS 5.9 / Apache 2.2.3>>This code works for me (always has):>>index.html>-------------------->[setcookie name=loginCookie&value=0000000000&expires=[date %A, >%d-%b-%Y][time %X]GMT]>[redirect new-page.html]>>new-page.html>---------------------->[if [GETCOOKIE name=loginCookie]^0000000000]>[then]it works[/then]>[else]it doesn't work[/else]>[/if]>-Dan Strong>New World Creative LLC>
http://www.NewWorldCreative.com>On 5/3/2013 2:17 AM, Psi Prime Inc, Matthew A Perosi wrote:>>>Actually I'm not too sure of this. In my experience, when >>[redirect] is found in a script it will trigger a redirect on the >>client side without sending anything else down to the browser.>>>>I've not tested this behavior in 6.x or 7.x, but in years past I >>always had to manually set the cookie values as variables at the >>same time they are being set in the browser. In subsequent >>refreshes (without the use of a redirect) the cookie information >>would be available with [getcookie].>>>>Remember, that cookie information is sent back to the server during >>the initial request for the next page. They get set as part of the >>header information during a 200 response as the next page is being >>loaded. This is why you can't use [setcookie] at the beginning of >>your script and then expect [getcookie] to return results later in >>the same script.>>>>-Matt>>>>On 5/2/2013 10:42 PM, Dan Strong wrote:>>>>>I'm pretty sure that as long as you set the cookie before the >>>redirect then the cookie will stick.>>>-Dan Strong>>>New World Creative LLC>>>http://www.NewWorldCreative.com>>>On 5/2/2013 7:39 PM, Steve Graham wrote:>>>>>>>Hello I have a quesion, can i setcookie then redirect to another >>>>page? Will the cookie save in the browser or will redirect make >>>>the cookie not save? Are there other conditions to make cookie >>>>not save?>>>>>>>>--------------------------------------------------------- This >>>>message is sent to you because you are subscribed to the mailing >>>>list . To unsubscribe, E-mail to: archives: >>>>http://mail.webdna.us/list/talk@webdna.us >>>>Bug Reporting: support@webdna.us>>>>>>>>>>--------------------------------------------------------- This >>>message is sent to you because you are subscribed to the mailing >>>list . To unsubscribe, E-mail to: archives: >>>http://mail.webdna.us/list/talk@webdna.us >>>Bug Reporting: support@webdna.us>>>-->>>Matthew A Perosi>>>Corporate Consultant>>>Mobile Marketing Expert>>>Senior Web Developer>>>SEO Analyst & Educator>>>matt@psiprime.com>>>>>>Psi Prime, Inc.>>>323 Union Blvd.>>>Totowa, NJ 07512>>>>>>Direct: 888.872.0274>>>Fax: 888.488.5924>>>>>>http://www.perosi.com>>>>>--------------------------------------------------------- This >>message is sent to you because you are subscribed to the mailing >>list . To unsubscribe, E-mail to: archives: >>http://mail.webdna.us/list/talk@webdna.us >>Bug Reporting: support@webdna.us>>>>--------------------------------------------------------- This >message is sent to you because you are subscribed to the mailing >list . To unsubscribe, E-mail to: archives: >http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >support@webdna.us-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemiStockPhoto portfolio - http://www.istockphoto.com/Terryfic3D?refnum=Terryfic3D--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Associated Messages, from the most recent to the oldest:
Same here. I've used this technique since day one, usually redirecting to [thisurl]>WebDNA 6.2 / CentOS 5.9 / Apache 2.2.3>>This code works for me (always has):>>index.html>-------------------->[setcookie name=loginCookie&value=0000000000&expires=[date %A, >%d-%b-%Y][time %X]GMT]>[redirect new-page.html]>>new-page.html>---------------------->[if [GETCOOKIE name=loginCookie]^0000000000]>[then]it works[/then]>[else]it doesn't work[/else]>[/if]>-Dan Strong>New World Creative LLC>http://www.NewWorldCreative.com>On 5/3/2013 2:17 AM, Psi Prime Inc, Matthew A Perosi wrote:>>>Actually I'm not too sure of this. In my experience, when >>[redirect] is found in a script it will trigger a redirect on the >>client side without sending anything else down to the browser.>>>>I've not tested this behavior in 6.x or 7.x, but in years past I >>always had to manually set the cookie values as variables at the >>same time they are being set in the browser. In subsequent >>refreshes (without the use of a redirect) the cookie information >>would be available with [getcookie].>>>>Remember, that cookie information is sent back to the server during >>the initial request for the next page. They get set as part of the >>header information during a 200 response as the next page is being >>loaded. This is why you can't use [setcookie] at the beginning of >>your script and then expect [getcookie] to return results later in >>the same script.>>>>-Matt>>>>On 5/2/2013 10:42 PM, Dan Strong wrote:>>>>>I'm pretty sure that as long as you set the cookie before the >>>redirect then the cookie will stick.>>>-Dan Strong>>>New World Creative LLC>>>http://www.NewWorldCreative.com>>>On 5/2/2013 7:39 PM, Steve Graham wrote:>>>>>>>Hello I have a quesion, can i setcookie then redirect to another >>>>page? Will the cookie save in the browser or will redirect make >>>>the cookie not save? Are there other conditions to make cookie >>>>not save?>>>>>>>>--------------------------------------------------------- This >>>>message is sent to you because you are subscribed to the mailing >>>>list . To unsubscribe, E-mail to: archives: >>>>http://mail.webdna.us/list/talk@webdna.us >>>>Bug Reporting: support@webdna.us>>>>>>>>>>--------------------------------------------------------- This >>>message is sent to you because you are subscribed to the mailing >>>list . To unsubscribe, E-mail to: archives: >>>http://mail.webdna.us/list/talk@webdna.us >>>Bug Reporting: support@webdna.us>>>-->>>Matthew A Perosi>>>Corporate Consultant>>>Mobile Marketing Expert>>>Senior Web Developer>>>SEO Analyst & Educator>>>matt@psiprime.com>>>>>>Psi Prime, Inc.>>>323 Union Blvd.>>>Totowa, NJ 07512>>>>>>Direct: 888.872.0274>>>Fax: 888.488.5924>>>>>>http://www.perosi.com>>>>>--------------------------------------------------------- This >>message is sent to you because you are subscribed to the mailing >>list . To unsubscribe, E-mail to: archives: >>http://mail.webdna.us/list/talk@webdna.us >>Bug Reporting: support@webdna.us>>>>--------------------------------------------------------- This >message is sent to you because you are subscribed to the mailing >list . To unsubscribe, E-mail to: archives: >http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >support@webdna.us-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemiStockPhoto portfolio - http://www.istockphoto.com/Terryfic3D?refnum=Terryfic3D--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Terry Wilson
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:
Upgrade to wsV (Email issue) (2004)
Delete Context - to remove record (1998)
More questions about serial number dishing (1997)
NT considerations (1997)
[URGENT] Different Results From Math Tag Depending On OS (2006)
RE: Netscape v. IE (1997)
is [shell] working? (1999)
Authorize.net? (2003)
SOP for WebDNA talk - MSNBot Crashing (2004)
WebCat2 - [include] tags (1997)
[WebDNA] Amazon EC2 and WebDNA (2017)
Storebuilder/TFTP Question (2001)
Hard Questions ? (1997)
Grouping search fields, etc. (1997)
Multiple prices (1997)
WebDNA for Dummies (2007)
PROBLEM WITH TALK LIST (2000)
WebCat2b15MacPlugin - showing [math] (1997)
Revisit: speed test (2002)
Summary layout (1997)