Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:30:08+00:00 2026-06-05T04:30:08+00:00

So, I looked through different posts and other resources and I still cannot make

  • 0

So, I looked through different posts and other resources and I still cannot make it work.
Seems basic and common but I am lost.
Here is my code.
Page “test_start.php”:

<html>
<head>
<title>Test</title>
</head>
<body>
    <p>Click <a href="test_script.php">here</a></p>
</body>
</html>

Page “test_script.php”:

<?php
    session_start();
    $_SESSION['passed']="My text!";
    header("Location: test_ultima.php");
?>

Page “test_ultima.php”:

<?php session_start(); ?>
<html>
<head>
    <title>Something</title>
</head>
<body>
    <p>This text shows, so redirect worked!</p>
    <?php
        echo "<p>Result isset: ".isset($_SESSION['passed'])."</p>";
        echo "<p>I passed:".$_SESSION['passed']."</p>";
    ?>
</body>
</html>

When I click on the link I see the following:

This text shows, so redirect worked!
Result isset:
I passed:

What am I doing wrong?
Please, if you can, also explein why and how it shall work…

Added Note: The first file is .php because in the end it will contain also some php code… this is obviously an example to first make it work and understand how it works…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:30:10+00:00Added an answer on June 5, 2026 at 4:30 am

    From the comment by OP:

    session_start() [function.session-start]: open(C:\PHP\sessions\sess_87ruc3n1gb0e5ivlsfurgr0nr0, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\wwwroot\missione-berna.ch\test_ultima.php on line 3

    This means that either the directory to which PHP tries to write the sessions doesn’t exist or it just doesn’t have the permission to read/write in this directory.

    So you first need to check out whether the directory actually exists. If it exists you should check the permissions of the apache (or other webservice) user on that directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I looked through the other posts and bug reports and couldn't figure out what's
I looked through previous questions to this effect, but my situation is slightly different...
I looked through the different ways I can use @using (Html.BeginForm()) but I am
I have looked through the answers in this forum but cannot seem to find
I have looked through the other SO posts that seem to be of the
I've looked through different posts here and couldn't find the answer.. check the source
I looked through a bunch of other questions looking for an awesome example of
I looked through a number of posts on websockets, nodejs, and socket.io and could
I looked through the existing questions of this kind but didn't find what I
I've looked through the other NoClassDefFoundError questions and not found a solution that works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.