+ 1

What is the requirement of session_start()?

Should I call this function on every HTML page or only on main page?

23rd Jun 2016, 10:28 AM
Dmitry Pudov
Dmitry Pudov - avatar
5 Answers
+ 4
the best way to avoid problems with the session_start. it's put it before the <!doctype> of your page and include the doctype into all the others pages
25th Jun 2016, 10:25 AM
fredius tout court
fredius tout court - avatar
0
yeah you can when you need to run your each script,function or program
25th Jun 2016, 9:14 AM
Rafsan Jani
Rafsan Jani - avatar
0
session_start() call is compulsory when you need to use a session. you need to specify it in every page you use.
2nd Jul 2016, 11:14 AM
Midhun Mathew
0
session_start are used to applying the session in a php code that mean we r starting the session , or in other hand session_destroy use for destroy the session.
1st Aug 2016, 3:52 PM
rachana kushwaha
- 1
yes can do it more as you like
23rd Jun 2016, 10:04 PM
Petro Jackson
Petro Jackson - avatar