Re: [PHP] Passing variables between pages



At 12:42 PM -0400 9/19/08, Dan Joseph wrote:
On Fri, Sep 19, 2008 at 12:35 PM, tedd <tedd.sperling@xxxxxxxxx> wrote:

At 12:22 PM -0400 9/19/08, Jason Pruim wrote:

It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is
discussing the differences in storing variables in SESSIONS as compared to
> storing them in MySQL when using this technique would not require either.


You've definitely raised an interesting topic.

Question though... a system requires different levels of access to see
various parts of the system. How does your method of doing things w/o
sessions accomidate that? Does it use that information from the origin
POST? Also, is this secure? Any loop holes?

I don't see any loop holes and it's secure as any other php script.

The technique holds all variables intact, including POST, GET, SESSION, et all arrays.

This does work -- as shown by this:

http://www.webbytedd.com/bb/tedd/index.php

Here's another example:

http://www.webbytedd.com/bb/php-run-php/

Note that $test is defined and populated with "This is a test" at the start of the parent script -- however, the contents of the variable remain regardless of which script you choose.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
.



Relevant Pages

  • Re: [PHP] Passing variables between pages
    ... It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is ... discussing the differences in storing variables in SESSIONS as compared to ... storing them in MySQL when using this technique would not require either. ...
    (php.general)
  • Tomcat sessions memory usage and MySQL connections
    ... experiencing freezing of the web server (java or mysql processes take ... now mysql seems to have too many connections all the time. ... On the other side, tomcat seems to have a lot of unused sessions open, ...
    (comp.lang.java.programmer)
  • Re: [PHP] Passing variables between pages
    ... It's interesting that another topic (i.e. SESSIONS vs. MySQL) is ... discussing the differences in storing variables in SESSIONS as compared to ... > storing them in MySQL when using this technique would not require either. ... sorry to wade in on this one but it seem's like a bit of false logic to me; and isn't actually doing anything different than standard php functionality. ...
    (php.general)
  • Re: [PHP] Sessions.. (Im learning), cant call a variable?
    ... > I'm just learning sessions... ... > And I'm trying to add a session variable to a MySQL database. ... > The information contained in this e-mail message is intended only for ... > If the reader of this message is not the intended recipient or an agent ...
    (php.general)
  • Re: Performance: MySQL, session,etc (Was Re: PHP sessions starting to fail)
    ... Thanks - looking into the MySQL config tonight..... ... >>> sessions daily, and at times i have seen 500 sessions open in the ... What you should be looking at is the load, ... > number of httpd processes and number of mysql processes. ...
    (comp.lang.php)