i have a login form and another form..i want to check user is logged in or not while user in on home page and he/she want to jump on another page.

Recommended Answers

All 2 Replies

Member Avatar for diafol

Noot sure that javascript is the right forum for this. What server side language are you using? Your login status as a rule will be held in a 'session', which should be stored on the server.

Using javascript to handle. Make function like page protect, so if user login, redirect to home page, and if user logout, redirect to another page, include function page protect in the header to disable user access this page without login or after logout

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.