For help, ecshop non-member jump to this little white after a thousand hardships finally achieved the ecshop membership registration background review function
The problem is how to enable a non-member to browse the website only on the homepage. when other pages are clicked, the system automatically jumps to the member logon page. what code should be embedded and where should I add it? Do not understand ing .. Please help ~~
Reply to discussion (solution)
Function Page_Load ()
{
If ($ _ SESSION ["username"] = null)
Header ("Location: login. php ");
}
Is this useful? Where can I add useful words?
No ECSHOP used
But I think it should be:
Check whether the current user is a member in a public class or an entry file. if not, redirect the header to logon (exclude the homepage)
The language uses php, and asks different gods to save ing.
No ECSHOP used
But I think it should be:
Check whether the current user is a member in a public class or an entry file. if not, redirect the header to logon (exclude the homepage) what are public classes or portal files )? How can I exclude the homepage?
Help me
Sorry... it may not be clear at the end (it was too busy before...
I don't know if you have solved this problem.