I have a controller named admin,and all functions in the controller can be used if the session variable is set,so what are the best ways to check if the session is set ,when clicking each link in the page or reloading the pages…
for example: if i open my admin home page in multiple tabs in a
browser and sign off from first tab, bt after that in the second tab
all links a working properly
so i want to check if the session is set or not…
Thanks!
If you want to check whether the session variable is set or not, then use this.
Meanwhile, if you want to check whether the session variable is set with a particular value, then you can use this.