//Includes
include_once( "lib/ezutils/classes/ezsession.php");
include_once( "access.php");
//Changing the siteaccess
$access=array("name"=>"cse", "type"=>EZ_ACCESS_TYPE_URI);
eZSys::clearAccessPath();
changeAccess($access);
//Creating a new session for the currently login user
eZSessionStop();
eZSessionStart();
//Regenerate the id of the session and Login
session_regenerate_id();
eZLDAPUser::loginUser($email, '', false, true);
//Redirect
$Module->redirectTo("/");