Sessions in Wordpress
Problem
By default sessions are disabled in Wordpress.This is because Wordpress uses cookies to verify login.In my case I designed the TnP notices section using sessions as they are more secure comparative to cookies.So I needed to activate sessions in Wordpress.
Solution
To enable sessions in Wordpress open wp-config.php file and insert the following lines at top of the file after php starting tag.
//To enable sessions in Wordpress
if (!session_id())
session_start();
Courtesy:[http://www.frank-verhoeven.com/using-session-in-wordpress/]




(4.33 out of 5)
EDUARDO
29 July 2011 at 5:49 am