adspace


How do I start a php session?

Answer Posted / Rajiv Singh Chaudhary

To start a PHP session, use the `session_start()` function at the beginning of your script. Make sure to call this function before any output is sent to the browser. Here's an example:nn```phpn<?phpn session_start();n// Your code here...n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what kind of things have you done on the social side?

1071


What does $_files means?

1170


What is difference between static and final in php?

1114


Which variable declarations within a class is invalid in php?

1052


What sized websites have you worked on in the past?

1092


What is trait in php?

1072


hello all, I need some sample placement papers in lion bridge.. can anyone help me?

2181


What is the current stable version of php?

1130


how to detect a mobile device using php

1177


Name and explain five of the PHP error constants?

1043


How to create a web form?

1116


Write a program using while loop?

1128


How to calculate the difference between two dates using php?

1151


What is the difference between htmlentities() and htmlspecialchars()?

1100


How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain

1082