[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

redirect deleting my session?

Hi,
I'm using the following to move to a new page

echo '<META HTTP-EQUIV="Refresh" CONTENT="0; URL=applied.php">';


does this delete the $_SESSION array?
0
markmchugh
Asked:
markmchugh
  • 2
1 Solution
 
hernst42Commented:
typical not, if you use session_start() also on applied.php
0
 
markmchughAuthor Commented:
very odd, my session is being destroyed somehow

here's the code
      print_r ($_SESSION);
      
      echo '<META HTTP-EQUIV="Refresh" CONTENT="1; URL=applied.php">';

then at the start of applied.php i have

session_start();
print_r ($_SESSION);


i can see the session, then when the redirect happens i just see Array ( ) Array ( )


very odd?
            
0
 
markmchughAuthor Commented:
this is sorted, i think there was something on the server cos it just started to work with no changes!!!!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now