1) Is my thinking about the persistence of the Session id correct. It stays the same until 5 minutes of in-activity.
2) I cant seem to find a variable with the guests session ID in it? I've tried
and many others...
and here's the line I'm trying to insert the session_id into the database.
Here's a link to the full code I'm modifying...
Code: Select all
$sql = 'INSERT INTO ' . $this->table_prefix . 'posts_likes (post_id, user_id, type, timestamp, session_id) VALUES (' . $post . ', ' . $this->user->data['user_id'] . ', \'post\', ' . time() . ',' . $user->session_id . ')';
https://github.com/satanasov/postlove/b ... jaxify.php
Any help is appreciated.