Closed krishnaguragain closed 9 years ago
Within the controller you are to write
$this->template->set_layout('new_layout');
@krishnaguragain Are you OK there?
@ivantcholakov I am just ok but it will take some more days to be in previous position.
@ivantcholakov Hi, How can I check if admin(user) is logged in from one app and check it from another app. e.g In site_examples from admin_example.
What is the purpose of this, why do you need it? I use independent logging pages in the front-end and in admin applications, the application sessions are different for better security.
like account.example.com where account is different app and i want to see whether the user is logged in or not from example.com (default app)
I understand it as something like "Who is online". Here is a sample explanation on how it is could be done, the provided code is old (edit: and insecure), it should be reworked: http://www.plus2net.com/php_tutorial/whois-online.php
Finally I solved my problem by using flexi auth library in core codeigniter application(i.e inside common folder) and then call from any module or app then it works. After few more days i will put it on github.
I will be capable to look at it in the beginning of June.
Hello. @ivantcholakov Why the app cannot set session when the domain is like http://example only.but it works fine when the domain is http://example.com
For http://localhost session works, I don't see a reason why not.
With http://ivan session does not work, confirmed. Edit: I can see that on every request the session cookie gets renewed.
I've just proposed a correction, #57.
Can We have Different Template in Different Module. If So, How can we do it ??