Hello All,
Am trying to redirect the user to home page if not logged in .
I user condition
if(!ossnisLoggedin()){
header("Location: ". "siteurl/home");
}
in file C:xampphtdocsjsrewampp hemessocialossntheme.php
Its not working and breaking the theme as per css
Hellow bro! If you want to redict non login user to login page why you mention
if(!ossnisLoggedin()){
header("Location: ". "siteurl/home");
}
For this need
if(!ossnisLoggedin()){
header("Location: ". "siteurl/login");
}
so want would be the solution.
I want to redirect non-logged in user to login page
Since site_url/home
is a link reserved by Ossn for members who ARE logged in, and there's already a built in redirecting mechanism to move NOT logged in users away from home back to the starting page, your code is colliding with that logic.
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)