Please what is worry with this, the cookie not set.
$c_time = 10;
$_SESSION['nick'] = "adex3g";
setcookie("nick",$_SESSION['nick'], time()+60*60*24*$c_time, "/");
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
Started on the old forum in December 2012 · view the original in the archive · old links redirect here
Please what is worry with this, the cookie not set.
$c_time = 10;
$_SESSION['nick'] = "adex3g";
setcookie("nick",$_SESSION['nick'], time()+60*60*24*$c_time, "/");
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
did u start a session?
session_start();
Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com
ori wrote: You will also need session_name('nick'); as your setting that in cookie
ok i will set the session name and give you reply.
Added after 10 minutes:
kevk3v wrote: did u start a session?
session_start();
already start thanks 4 reply.
have connected with http://adexchat.com ? Fun up with http://forum.adexchat.com
<?php
session_start();
$_SESSION['nick'] = "adex3g";
$c_time = 10;
$expire = time()+60*60*24*$c_time;
$nick = $_SESSION["nick"];
setcookie("nick",$nick, $expire);
//// to get the cookie echo $_COOKIE["nick"];
//// i dont get why you're using sessions and cookies though...
?>
Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com