Re: Hi friends, can you help. Session and print out data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 18, 2005 at 08:48:01AM -0400, Juan Pablo Gil wrote:
> On 6/18/05, deffleo <deffleo@xxxxxxxxx> wrote:
> > Hi friends,can you help me. i have 2 problem in php scripting.
> > 
> > 1.when i use session and i want to redirect user to another page.
> 
> ...
> 
> add the following at the beginning of each PHP file:
> 
> //-- <code> --
> if (!session_id() ) { session_start(); }
> //-- </code> --

What about this one
(http://de3.php.net/manual/de/function.session-id.php#49873):

--- snip ---
  Try this code snippet, from a book by a security expert who says this
  is more secure to place on every page:

  session_start();
  $_SESSION['name'] = "YourSession";

  if (!isset($_SESSION['initiated']))
  {
     session_regenerate_id();
     $_SESSION['initiated'] = true;
  }
--- snip ---

Cheers,
Martin


PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux