I'm using phonegap and I cannot figure out how to start a session.
It's not possible to use php in the code itself because of phonegap. So I need a solution for getting the session by using javascript,
I know that I need to use Ajax but I'm new with ajax and that's most of my problem. So if someone can help me with this I would appreciate it.
I need to load this code in a html page with JavaScript.
<?php
session_start();
if(!empty($_SESSION['login_user']))
{
header('Location: home.php');
}
?>
sessionon the requested page.