setcookie

Here you can ask or discuss anything else you want...

setcookie

New postby arlo » Sat Nov 16, 2013 7:31 pm

Is it possible to set a cookie or write to an external file with jumi.
arlo
 
Posts: 2
Joined: Sat Nov 16, 2013 7:29 pm

Re: setcookie

New postby Simon » Sat Nov 16, 2013 7:41 pm

Hi,

Yes, it is possible. It executes your php script, so you can do what you need.

Best Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: setcookie

New postby arlo » Sat Nov 16, 2013 8:25 pm

I have the following test script but I can not retrieve and cookie value in a jumi plugin.
<?php
setcookie( "cookiename", "cookievalue", time()+3600);
$mycookie = $_COOKIE["cookiename"];
if ( isset( $mycookie ) )
print "<p>The value in cookie - $mycookie</p>";
else
print "<p>There is no value in cookie.</p>";
?>
arlo
 
Posts: 2
Joined: Sat Nov 16, 2013 7:29 pm


Return to Open discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron