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:

Error: Can't open order file. Ignoring [OrderFile] context (2000) PCS Frames (1997) There is a bug in 3.0.1 mac plug-in (1998) Emailer Problem (1999) That Flakey 'Brawl' thing (1997) oops private message leaked into talk list (1997) two unique banners on one page (1997) [GROUPS] followup (1997) [Sum] function? (1997) Non-Cart Files in Shopping Cart Folder (1997) New Image Gallery using WebDNA and ImageMagick (2003) Problems adding stuff to the shopping cart. (1997) HELP WITH DATES (1997) EIMS Problems (1997) Searching (second post) (1999) WebCat2: Items xx to xx shown, etc. (1997) [WebDNA] Friday's.. WIP thread (2009) WC1.6 to WC2 date formatting -FIXED! (1997) Nested Loops and SHOWIFs (1997) Nesting [RAW] (1998)