Gossamer Forum
Home : General : Perl Programming :

Stupid mistake with cookies :|

Quote Reply
Stupid mistake with cookies :|
Can anyone see a problem with this code?

Code:
my $cookie_pass = $IN->cookie (-name => 'pass',
-value => $pass
);

print $IN->header( -cookie => $cookie_pass );

my $cookie_user = $IN->cookie (-name => 'user',
-value => $id
);

print $IN->header( -cookie => $cookie_user );

For some reason, when calling them, only the 'user' one holds a value Unimpressed I've tracked down $pass, and that seems to be getting right upto where the cookie is set....so what am I doing wrong?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Stupid mistake with cookies :| Andy 8553 Feb 6, 2003, 2:18 PM
Thread Re: [Andy] Stupid mistake with cookies :|
Paul 8399 Feb 6, 2003, 2:23 PM
Thread Re: [Paul] Stupid mistake with cookies :|
Andy 8416 Feb 6, 2003, 2:25 PM
Thread Re: [Andy] Stupid mistake with cookies :|
Paul 8459 Feb 6, 2003, 2:34 PM
Thread Re: [Paul] Stupid mistake with cookies :|
Andy 8389 Feb 6, 2003, 2:36 PM
Thread Re: [Andy] Stupid mistake with cookies :|
golden_water 8377 Feb 12, 2003, 7:30 AM
Thread Re: [golden_water] Stupid mistake with cookies :|
Andy 8379 Feb 12, 2003, 7:36 AM
Thread Re: [Andy] Stupid mistake with cookies :|
Paul 8334 Feb 12, 2003, 7:50 AM
Thread Re: [Paul] Stupid mistake with cookies :|
Andy 8354 Feb 12, 2003, 7:53 AM
Thread Re: [Andy] Stupid mistake with cookies :|
andybrock 8387 Feb 16, 2003, 9:45 AM
Thread Re: [andybrock] Stupid mistake with cookies :|
Paul 8352 Feb 16, 2003, 10:14 AM
Post Re: [Paul] Stupid mistake with cookies :|
andybrock 8295 Feb 17, 2003, 9:23 AM