FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » session question
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session question [message #177686 is a reply to message #177665] Fri, 13 April 2012 13:27 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Thu, 12 Apr 2012 12:43:28 -0400, William Gill wrote:

> I have a site with an input form that recursively calls itself via
> action="<?php echo $_SERVER['PHP_SELF']; ?>"

Nope. Recursive is the wrong term to use here. It calls itself, yes, but
does not do so in a truly recursive manner.

> I am thinking of using a session approach which would be simpler to
> follow, but have never used sessions on a page that is recursively
> called.

This is not recursive calling. In recursive calling, a function calls
itself from within itself.

In a web page that includes a link back to itself, it has completed all
processing before it is called again.

Just include a single call to session_start() at the start of the main php
script file, and don't call it on the included php script files.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Date/Time warning
Next Topic: How to create an instance from a class name
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Dec 12 20:55:10 GMT 2024

Total time taken to generate the page: 0.04246 seconds