Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I want to get an understanding of how SID can be helpful to me. Is SID automatically generated when session_start() is declared? (that is what I thought would happen, but the below code does not show SID:Code: Select all
<?php
session_start();
session_register('count');
$count = 1;
[color=red]
if(isset($SID)) //THIS CONDITION IS NOT BEING MET -- I THOUGHt THAT IT WOULD BE
echo "SID is $SID<br>";
[/color]
else echo "SID not set but count is: $count<br>";
?>- Mike
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]1.[/b] Select the correct board for your query. Take some time to read the guidelines in the sticky topic.[/quote]