[Gambas-user] [Gambas Bug Tracker] Bug #887: Session is lost, and I don't know why.
bugtracker at ...3416...
bugtracker at ...3416...
Tue Jan 26 21:54:02 CET 2016
http://gambaswiki.org/bugtracker/edit?object=BUG.887&from=L21haW4-
Comment #3 by Benoît MINISINI:
No. It does not work because, by default, WebPage are not buffered.
So when the session is created, the cookie cannot be sent to the web browser because the Webpage header has already be sent.
Two solutions:
1) Add "Me.Buffered = True" in the webpage "_new" method. The headers and the HTML will be sent once the page has been entirely rendered.
2) Check the login/password and create the session outside of the WebPage, in the Main method for example.
Benoît MINISINI changed the state of the bug to: Invalid.
More information about the User
mailing list