Jump to content

Archived

This topic is now archived and is closed to further replies.

MarConnor

Help, please.

Recommended Posts

Hello.
I have a small question.
If I include:

[code]session_start();[/code]

Inside a required/included file, will the file that it's included into start the session?

Share this post


Link to post
Share on other sites
If you have a file called include.php that has

[code]<?
session_start();
?>[/code]

and a page called index.php that has

[code]<?
include('include.php');
?>[/code]

Then the session would be started by index.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.