am I right or wrong let me know!?

Here it is:

if you put a whole reference to your website such as: http://www.website.com while in session your session will end you will lose the $_SESSION array.

so to avoid this make it local folder reference such as: ../folder/index.php

I just think this is an interesting way $_SESSION and session fucntions work nice and secure.

    have you tried, because its not a true statement.
    Session will continue if you call a page where you started the session.

      before <html> code:

       if(!isset($_SESSION['username'])){header("Location: http://www.website.com/000/?pn=00001&l=$language");}
      

      if I state it like that it does not pass variables across session dies.

      i guess question is "Why?";

      page code:

      <legend>Update Content Form</legend>
      <?php if ($updatepagenumber < 0) { ?>
      <select name="select_upnul" id="select_upnul" onchange="MM_jumpMenu('parent',this,0)">
      <option>Page# Lang</option>
      <?php do { ?>
      <option value="../02/?upn=<?php echo $row_rspns['col_pagenumber']; ?>&pn=40201&l=<?php echo $language; ?>&ul=<?php echo $row_rspns['col_lang']; ?>">
      <?php echo $row_rspns['col_pagenumber'] . ' ' .  $row_rspns['col_lang']; ?>
      </option>
      <?php } while ($row_rspns = mysql_fetch_assoc($rspns)); ?>  	
      </select>
      <?php } ?>
      

      if i refered to it as http://www. than i would end session and lose the $_SESSION array

      P.S.: or should i name it script ... talking to myself 🙂)), btw I look over my post >= 3 times just like a page in a book too baddddd some variants are not described in the book therefore there are Forums 🙂))

      to make it completely clear i am talking about the <select><option value=""></option></select>

      GOD I HATE THE ANTI VIRUS SOFTWARE it LAGGS your comp so BADDDD.....

        i didn't see session_start() in your code...?

          session_start() is above the statement I have posted.

            By default, the cookie parameters for sessions point to whatever domain you're using to access the page that starts the session. "phpbuilder.com" is not the same as "www.phpbuilder.com".

            If you want sessions to apply to all subdomains, you have to manually specify the "domain" parameter of the cookie (e.g. using [man]session_set_cookie_params/man or setting it in a .htaccess file) to something like ".mysite.com" - the preceding "." allows the cookie to apply to all subdomains (including the null/empty subdomain, e.g. "phpbuilder.com").

              if your reply = true

              i need to see what is in the $SESSION array. session functions work with $SESSION array.

                do session functions work with $_SESSION array

                  Not really sure what you mean by "work with" ? I guess that would depend on what function(s) you're talking about.

                    Write a Reply...