Does not want to see PHPSESSID in the url. How can be done
this ?

Answer Posted / prantik gautam

1) Make the form method from 'get' to 'post'

2) If the form method is 'get' then keep the session id in
an extra session variable and call ob_start() for buffering.

eg :

ob_start();
session_start();
$sid=session_id(); //for different sesion id for each session
$_SESSION['sid']=$sid;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of imagetypes() method?

535


Why do we need abstract class in php?

503


What is class extend in php?

533


Who is the father or inventor of php?

581


Is session a cookie?

555






Which is better python or php?

560


How do I use isdigit function?

558


What is a path Traversal?

555


What is php variable?

519


Explain the advantages of using PHP?

549


Does php use html?

475


What is boolean in php?

524


Which function can be used to delete a file?

586


How to make database connection in php?

533


How to insert an new array element in array?

534