Hi, I need to protect some pages using SESSIONS I’ve created a new function, which I then call into each page. The following code seems to work but I’m not sure if is written correctly and also when I redirect a logged in user with “client” role how can I redirect them to the client dashboard? At the moment it does redirect unlogged and clients to the index page. Many thanks