top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can we get the value of current session Id in PHP?

+1 vote
645 views
How can we get the value of current session Id in PHP?
posted May 27, 2014 by Karamjeet Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Using session_id() function,you can get the value of session id for current session.

answer May 28, 2014 by Rahul Mahajan
0 votes

We can get the value of current session with the use of
session_id() returns the session id for the current session.

answer May 30, 2014 by Vrije Mani Upadhyay
Similar Questions
+1 vote

I have a column called name in a table info
So I want to update that with it's current value, like this name + user_input. I tried with this code but not working

mysql_query("UPDATE info SET name = name + '$user_input' WHERE id='$user_id'");

But It returns 0 and update column to 0....

Any idea how to accomplish this task?

+2 votes

I have moderate level PHP programming skills. I am also interested in merging those skills inside of the WordPress app. With their advanced responsive design themes and many other functions it seems like a good idea. I have tried loading some PHP plug-ins in WP – but I don't seem to get them to do more than basics.

Can anybody help me on how I can get started working with PHP/MySQL inside of the WordPress app?

...