Bit of an idiot question but how do I use sessions instead of cookies?
Bit of an idiot question but how do I use sessions instead of cookies?
or it might bePHP Code:session_start("username");
$_SESSION[username] = '$DBQUERY[username]';
PHP Code:session_start('username');
$_SESSION[username] = '$DBQUERY[username]';
Or infact it might even be: LEARN PHP!
PHP Code:if (!isset($_SESSION)) {
session_start();
}
$_SESSION['yoursessionnamehere'] == "What ever you want.. When ever you want..";
$_SESSION['someothersession'] == $myvariable;
Is this the techtuts user system?
Change
toPHP Code:ob_start();
PHP Code:session_start();
Dear oh dear oh me! Learn PHP george and stop acting all immature.
Thanks Adiculantes for this ^^
¥ • Playhabbo.co.uk Owner • ¥
Post Count: 50 - 100 - 150 - 200 - 250 - 300
Well you did post to copys of the same code, as alternatives just becuse you substituted " for ' . Then the code you set to a session was in quotes as well which was completely pointless when you getting it from a variable anyway.... plus for an unknown reason what was stored in the varible looks like it was copied from part of the handling of a mysql query, as opposed to just standard text... So yea, it probably was.
Well i don't see how because they would work. I didn't think the owner of "Radopanel.co.uk" could tell me to learn php... Fair enough carl or Henious.Well you did post to copys of the same code, as alternatives just becuse you substituted " for ' . Then the code you set to a session was in quotes as well which was completely pointless when you getting it from a variable anyway.... plus for an unknown reason what was stored in the varible looks like it was copied from part of the handling of a mysql query, as opposed to just standard text... So yea, it probably was.
But not Tom rofl
I know more PHP that you ''/ When coding PHP I use very good coding practices unlike most people.
Also how did you figure that since I own RadioPanel I don't know PHP?
Ask anyone on this forum, apart from you and that know it all stuck up guy (Dave?).
XHTML, CSS, AJAX, JS, php, MySQL.
--
HxF moderators can't read timestamps.
Want to hide these adverts? Register an account for free!