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 7491825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T16:10:54+00:00 2026-05-29T16:10:54+00:00

What it says above. Unsurprisingly, I couldn’t find a clear answer to this. I

  • 0

What it says above. Unsurprisingly, I couldn’t find a clear answer to this.

I just want to know if calling it more than once in a script will cause a problem.

  • 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-05-29T16:10:54+00:00Added an answer on May 29, 2026 at 4:10 pm

    Quoting the manual :

    As of PHP 4.3.3, calling session_start() after the session was
    previously started will result in an error of level E_NOTICE.

    Also, the second session start will simply be ignored.

    So, it will not do much — except raise a notice, which indicates there is some kind of a problem ; which means you should not call this function more than once.

    Edit after @hakre’s comment : Just to be sure, I’ve tested with the following portion of code, which calls session_start() twice, after making sure errors and notices get reported :

    <?php
    ini_set('display_errors', 'on');
    error_reporting(E_ALL | E_STRICT);
    
    session_start();
    session_start();
    

    And I do get the following notice :

    Notice: A session had already been started - ignoring session_start() in /.../temp.php on line 6
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just above the answer box an error would appear on wrong attempt which says
Question says it all. I'm just having trouble figuring this out. What i'm trying
So, just as the title says above is related to the fact that I
The above question says it all. I know you can create a PDF from
This says $total and $sub is undefined for $total += $sub. $sub was declared
Apple says: UIModalPresentationFormSheet The width and height of the presented view are smaller than
My assignment says to throw a try and catch for this: If the user
As it says above... I don't need the seconds with that as it does
I'm using the TResourceStream class to read a resource, know I want to modify
I'm missing something here... I have this command: $xpath->query('//input')->item(0) The php.net documentation says that

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.