PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Store zoom_query as a PHP session variable value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Store zoom_query as a PHP session variable value

    Hello, what is the best way to store the user's current search query value as a php session variable? I would like to store the zoom_query value as a session variable such as $_SESSION['search']? I am using search.cgi. I reviewed the report.php code but was not able to identify where I could echo the current query. Can you please advise as to the best technique?

  • #2
    If you are using the search.cgi, then it isn't coded in PHP. So you can't just add a bit of PHP script to the CGI.

    Maybe you can use the wrapping code here to wrap the CGI in PHP, then add your session management code to the PHP script.

    Comment


    • #3
      Thank you for the recommendation, I will definitely check it out. I am currently using the PHP $_SERVER['REQUEST_URI'] and parse_str() functions to parse the query value from the url. It seems to work pretty well, I was just curious if the query value was stored in a variable in report.php.

      Zoom is an awesome program! Thank you!
      Last edited by darren christopher; Jun-16-2015, 03:04 AM. Reason: fixed typo

      Comment

      Working...
      X