Did you used session_start to start a session?
<?php
session_start();
?>
After this
$id = $jfeta['id'];
should work:
<?php
$jsqla = mysql_query("select id, user_name, user_type from users where pw='".$pass."' and email='".$email."'") or die("Website under maintenance.");
$jfeta = mysql_fetch_assoc($jsqla);
session_start();
$id = $jfeta['id'];
$_SESSION['id'] = $id;
?>
your Selection could be the Problem too:
$jsqla = mysql_query("select id, user_name, user_type from users where pw='$pass' and email='$email'") or die("Website under maintenance.");
could work better with this:
$jsqla = mysql_query("select id, user_name, user_type from users where pw='".$pass."' and email='".$email."'") or die("Website under maintenance.");
The message "Undefined index" means that the one value you use isn't set.
you can prevent this by example:
if(isset($jfeta['id']))
{
//do thing
}