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.com http://WhosComing.com - a simplified, affordable online reservation system iStockPhoto 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:

    
  1. Re: [WebDNA] setcookie then redirect (Terry Wilson 2013)
  2. Re: [WebDNA] setcookie then redirect (Dan Strong 2013)
  3. Re: [WebDNA] setcookie then redirect (Donovan Brooke 2013)
  4. Re: [WebDNA] setcookie then redirect ("Psi Prime Inc, Matthew A Perosi " 2013)
  5. Re: [WebDNA] setcookie then redirect (Dan Strong 2013)
  6. [WebDNA] setcookie then redirect (Steve Graham 2013)
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.com http://WhosComing.com - a simplified, affordable online reservation system iStockPhoto 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:

Uploading stuff along with variables (2006) Re:Emailer and encryption (1997) [WebDNA] Problem with SendMail - seems succesfull but nothing to recieve (2016) generating unique IDs (2000) Protect (1997) member logins database (2003) Multiple fields on 1 input (1997) Spaces in sendmail (1998) Browser Caching (2003) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] ListMIMEHeaders (2008) popups, netscape vs explorer (1997) Re:2nd WebCatalog2 Feature Request (1996) WebCat2b13MacPlugIn - More limits on [include] (1997) My slower response (1997) Sample Tearoom Search Error (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCatalog for Postcards ? (1997) Emailer choke (1997) Date Math broken on Mac OS X 10.4? (2007)