integrativesoft / lara

Lara Web Engine is a lightweight C# framework for web user interface development.
Apache License 2.0
153 stars 9 forks source link

Session Handling not working in 'default' hosting mode? #96

Closed Seji64 closed 4 years ago

Seji64 commented 4 years ago

Hi, first of all - absolutely great project!

I am currently 'playing' a bit with lara and trying to set up a login page. But somehow 'LaraUI.Page.Session' is not working as expectected (is null). When i switch to "BrowserApp" Mode all is working fine. Is this by design or i am doing something wrong?

PS: Could you provide a Login Site sample? cause i think how i handle the login is not very nice....

pablocar80 commented 4 years ago

Hello @Seji64 , thank you! I tried to modify the mode for the sample application, and I could still see the Session, when executing code within an event (i.e. click of a button). Would you mind pasting code or uploading a repository with the issue, to help me reproduce the error?

Seji64 commented 4 years ago

hi and sorry for the late response. The error/bug was my own failure. The access to the session is working fine. I have another issue, but i will open a new one for that.