On closing the session , it is asking for login again

Integrated Okta in my application, but when i logged in once, closed the session and again opened my application it is asking for login again and the same issue with different browsers too. could you please help me out why it is asking for login again and again

If you closed the session, what’s your expectation then?

i’m closing the browser only, i haven’t logged out of my application.My expectation is again if I open my application the user should be logged in only, as i haven’t logged out yet.

Usually web-apps maintain a session with a help of browser session cookies, which are deleted, when a user closes the browser. If you need a different behavior, you have to implement a different scheme.

can i know what are the available schemes?

Try to google for “persistent cookies”