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

  • Home
  • SEARCH
  • 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 8338547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:37:21+00:00 2026-06-09T04:37:21+00:00

I am beginning to learn php. I have a question regarding sessions. Right now,

  • 0

I am beginning to learn php. I have a question regarding sessions.

Right now, I know that session_start() creates a session variable.

What I don’t know is, when I access the session I created, do I need to use session_start() again?

If yes…

Why is this? Because I already created a session and I wonder why it wouldn’t last the entire browsing session.

  • 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-09T04:37:23+00:00Added an answer on June 9, 2026 at 4:37 am

    because what i understand from it is, that it is going to create a new session.

    No:

    session_start() creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie.

    http://php.net/session_start

    Each new page you visit is an entirely new context for PHP. session_start allows you to reestablish a previous context/session/data.

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

Sidebar

Related Questions

I'm beginning to learn flex, and it seems that now is right around the
I've got a PHP background, but I'm beginning to learn Objective-C, so that I
I am new to Python (coming from MATLAB) and was beginning to learn that
I'm just curious as I am beginning to learn PHP and MySQL, as to
I'm beginning to learn some Hadoop/MapReduce, coming mostly from a PHP background, with a
Im beginning to learn sphinx search php api after running this query <?php include('sphinxapi.php');
I am just beginning to learn Matlab , so this question might be very
I am just beginning to learn Java and heard that getting the size of
I'm on the beginning of my Learn MVC way. Basically, I don't have big
I am just beginning to learn SQL and have stumbled at the first hurdle,

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.