Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: The previous session was terminated due t Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
drneamati
Newbie
Newbie
Avatar

Joined: 13 December 2010
Location: France
Online Status: Offline
Posts: 2
Posted: 13 December 2010 at 1:31pm | IP Logged Quote drneamati

Hi.
I have download Webmail Lite and installed it on my web server.
I want to integrate it with my web site application.thus due to documentation , i code in php:

include($_SERVER['DOCUMENT_ROOT'].'/webmail/integr.php');
$Integr = new CIntegration('http://webmail.foroshandegan.com/');
if (!$Integr->UserLoginByEmail('info@foroshandegan.com','inf o@foroshandegan.com', START_PAGE_IS_MAILBOX))
{
    echo 'Error: failed to log into the account. Reason: ' . $Integr->GetErrorString();
}


login process succeefully done(username/password accepted without error) but it show below error message and didn't show mailbox , insteadt it show login form again:
The previous session was terminated due to a timeout.


what is wrong?
Back to Top View drneamati's Profile Search for other posts by drneamati
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6089
Posted: 14 December 2010 at 12:29am | IP Logged Quote Igor

According to the code sample you provided, the account password was not supplied, so it could be that WebMail lets you in but can't establish a session. Try supplying a password in integration method call, does that help?

Do you encounter session errors when entering WebMail interface via standard login screen?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
drneamati
Newbie
Newbie
Avatar

Joined: 13 December 2010
Location: France
Online Status: Offline
Posts: 2
Posted: 23 December 2010 at 11:07pm | IP Logged Quote drneamati

thanks
i found my fault and also solution.
my script was outside if webmail folder and it made this error.
i moved it to webmail folder and problem solved.
thanks for your assistant.
Back to Top View drneamati's Profile Search for other posts by drneamati
 

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