|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
i need a help in Cookies .. I am using perl with CGI.pm i want to set a cookie in the client side using CGI.pm .. It is well and Fine working. The problem is i couldnt able to set different valuefor the same cookie after some pages displayed ... i used this code ... $CookieID = "$id+$password"; $cookies = $query->cookie(-name=>'b', -value=>$CookieID ); print $query->header(-cookie=>$cookies); Anyone please tell me what is the problem.. vijay |
|
#2
|
||||
|
||||
|
$CookieID = "$id+$password"; $cookies = $query->cookie(-name=>'b', -value=>$CookieID ); print $query->header(-cookie=>$cookies); ------------------- ------------------- Just try like following.. $CookieID =$id."+".$password; # i don't what you are doing with this '+' #pass one more argument 'expires'.(ie, set an expiry time for your cookie) $cookies = $query->cookie(-name=>'b', -value=>'$CookieID',-expires=>'+1h'); print $query->header(-cookie=>$cookies); --------------- --------------- ------------------ SR - webshiju.com "The fear of the LORD is the beginning of knowledge..." |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Cookie Problem! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|