Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: Include codeigniter Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
port20031
Newbie
Newbie


Joined: 21 July 2021
Location: Ukraine
Online Status: Offline
Posts: 1
Posted: 23 July 2021 at 12:55am | IP Logged Quote port20031

Hello.

I am using a Codeigniter app.
How can I embed WebMail Lite 8 without redirecting as suggested in the tip
https://afterlogic.com/docs/webmail-lite-8/developers-guide/logging-in-programmatically
?
Back to Top View port20031's Profile Search for other posts by port20031
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 23 July 2021 at 1:12am | IP Logged Quote Igor

An example provided there essentially does 3 things:

1) logging user into their email account;
2) if the login attempt is successful, AuthToken cookie is set accordingly;
3) opening WebMail interface.

Redirecting with \Aurora\System\Api::Location is the 3rd step - without that, user will be logged in but they won't have WebMail interface shown for them. I'm not familiar with Codeigniter so not sure what exactly is the issue with that, but if using \Aurora\System\Api::Location method isn't an option for some reason, you can use some other method that will direct user to the interface. Note that internally, the method uses standard PHP approach described here:

Code:
header('Location: '.$sNewLocation);


There are other integration methods available, via POST and Single Sign-On but they use the same kind of redirect as there's no way around that.

--
Regards,
Igor, Afterlogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide