Can I create user log in application without starting a new session(without using session_start()).

I've created a application where user can log in but session is not created.But everything is working correctly.My application is working under one url.URL is not changing when user navigates.Everyting is happaning behind the scene usign AJAX.

1)If I move with my way will there be problems in future ?.
2)Is it a bad practice ?.

Thanks.

It would be better for you to use php sessions, but you can accomplish this task with cookies.

I have given the project how develope "online selling of clothes"
please share ur ideas for me with PHP

Member Avatar for diafol

Bad practice depends on your requirements. If everything is handled by ajax and the url doesn't change, can users bookmark properly and what about SEO? Are these important to you?

Is there any reason why you don't want to use php sessions?
is there any reason why you don't want to change the url on changing the content?

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.