Click here to Skip to main content
15,936,802 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Fatal error: Uncaught Error: Call to undefined function sesstion_start() in C:\xampp\htdocs\7-8\signup.php:4 Stack trace: #0 {main} thrown in C:\xampp\htdocs\7-8\signup.php on line 4


What I have tried:

i can create form but in my chroom seen erroe fatal error undefined error sesstion
Posted
Updated 31-Jul-23 23:21pm
Comments
Richard MacCutchan 1-Aug-23 3:42am    
You need to show us the code where the error occurs.
Patrice T 1-Aug-23 6:41am    
Without code, it will be complicated to help you fix it.

You probably meant to call session_start()
 
Share this answer
 
Comments
Richard MacCutchan 1-Aug-23 4:34am    
Well spotted.
When you use sessions in your application, you need to call it from EVERY page that you make use of '$_SESSION' data. The 'session_start' statement must be at the top of your page before you add any other code. To check if a session were started, you can use the following check -
PHP
if (session_status() == PHP_SESSION_NONE) {
	session_start();
}


You can read more on sessions at PHP - session_start[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900