how to retrieve cookies?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to retrieve cookies?

EstebanLM
Hi all,
This is a dumb question, but it is annoying me:
I am creating a cookie with, like this:

self redirectWithCookie: WACookie key: 'officious' value: '[hidden email]'.

And then, I'm trying to retrieve it with:

aCookie := (self session currentRequest cookieAt: 'officious').

aCookie value has a strange string, something like "AJHGfjddggaAVSGF" (or similar) :(

What's my error?
What I'm doing wrong?

Thanks in advance,
Esteban

--
"Querer es suscitar las paradojas"
Camus. El míto de Sísifo.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: how to retrieve cookies?

Philippe Marschall
2007/12/14, Esteban Lorenzano <[hidden email]>:

> Hi all,
> This is a dumb question, but it is annoying me:
> I am creating a cookie with, like this:
>
> self redirectWithCookie: WACookie key: 'officious' value:
> '[hidden email] '.
>
> And then, I'm trying to retrieve it with:
>
> aCookie := (self session currentRequest cookieAt: 'officious').
>
> aCookie value has a strange string, something like "AJHGfjddggaAVSGF" (or
> similar) :(
>
> What's my error?
> What I'm doing wrong?

Can you gather a bit more information? Can you check if WACookieTest
works ('Cookies' under /seaside/tests/alltests)? Can you inspect the
cookies dictionary in the request (both WARequest and nativeRequest)?

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: how to retrieve cookies?

EstebanLM
This is official: I'm stupid,
What happens is that my application name is 'officious' too, and I'm using #useSessionCookie, so, Seaside is storing session id in 'officious' cookie... and that's why WACookie#value returns always a string "suspiciously seemed" to a session id.

I'm ashamed... 

Cheers,
Esteban

On Dec 14, 2007 3:01 PM, Philippe Marschall < [hidden email]> wrote:
2007/12/14, Esteban Lorenzano < [hidden email]>:
> Hi all,

> This is a dumb question, but it is annoying me:
> I am creating a cookie with, like this:
>
> self redirectWithCookie: WACookie key: 'officious' value:
> '[hidden email] '.
>
> And then, I'm trying to retrieve it with:
>
> aCookie := (self session currentRequest cookieAt: 'officious').
>
> aCookie value has a strange string, something like "AJHGfjddggaAVSGF" (or
> similar) :(
>
> What's my error?
> What I'm doing wrong?

Can you gather a bit more information? Can you check if WACookieTest
works ('Cookies' under /seaside/tests/alltests)? Can you inspect the
cookies dictionary in the request (both WARequest and nativeRequest)?

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
"Querer es suscitar las paradojas"
Camus. El míto de Sísifo.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

RE: how to retrieve cookies?

Sebastian Sastre-2
Easy man, computers are stupidly formal so it's quite easy to clash names these days. They can't capture your intention so disambiguation is over our shoulders,
 
    cheers,
 

Sebastian Sastre

 


De: [hidden email] [mailto:[hidden email]] En nombre de Esteban Lorenzano
Enviado el: Viernes, 14 de Diciembre de 2007 20:48
Para: Seaside - general discussion
Asunto: Re: [Seaside] how to retrieve cookies?

This is official: I'm stupid,
What happens is that my application name is 'officious' too, and I'm using #useSessionCookie, so, Seaside is storing session id in 'officious' cookie... and that's why WACookie#value returns always a string "suspiciously seemed" to a session id.

I'm ashamed... 

Cheers,
Esteban

On Dec 14, 2007 3:01 PM, Philippe Marschall < [hidden email]> wrote:
2007/12/14, Esteban Lorenzano < [hidden email]>:
> Hi all,

> This is a dumb question, but it is annoying me:
> I am creating a cookie with, like this:
>
> self redirectWithCookie: WACookie key: 'officious' value:
> '[hidden email] '.
>
> And then, I'm trying to retrieve it with:
>
> aCookie := (self session currentRequest cookieAt: 'officious').
>
> aCookie value has a strange string, something like "AJHGfjddggaAVSGF" (or
> similar) :(
>
> What's my error?
> What I'm doing wrong?

Can you gather a bit more information? Can you check if WACookieTest
works ('Cookies' under /seaside/tests/alltests)? Can you inspect the
cookies dictionary in the request (both WARequest and nativeRequest)?

Cheers
Philippe
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
"Querer es suscitar las paradojas"
Camus. El míto de Sísifo.

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside