Here, you will know, How to store current page(URL) in session? First, get the current page by using $_SERVER[“REQUEST_URI”] and then use $_SERVER[‘SERVER_NAME’] it will give name of the domain then you can concatenate them both and store in session as given below.

 

Sharing is caring!

Hello There! I am NAVAL DABRAL and coding is my passion that I have turned into my profession. I have been coding for over 3 years and have a vast experience in this field.

Leave a Reply

avatar
  Subscribe  
Notify of