adrianhajdin / aora

Build your first mobile application
https://jsmastery.pro
1.41k stars 259 forks source link

Creation of a session is prohibited when a session is active #23

Open Robert-Main opened 3 months ago

Robert-Main commented 3 months ago

the method for signUp works perfectly and also in the database the user is being added but while trying to login using the same credentials i get this error "Creation of a session is prohibited when a session is active" which wont show even in the terminal where it have occurred

thanhhung-131 commented 3 months ago

With this error, you can go to the Auth section of Appwrite -> Click on the account you just registered -> select the session tab, and then delete I hope this will help you

Robert-Main commented 3 months ago

Thanks... let me try and i will give you the feedback

On Sun, 12 May 2024, 19:12 Daiki11101, @.***> wrote:

With this error, you can go to the Auth section of Appwrite -> Click on the account you just registered -> select the session tab, and then delete I hope this will help you

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/aora/issues/23#issuecomment-2106302980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXVZDUYSMHMFJCC4XJBGHLTZB6IIJAVCNFSM6AAAAABHQ3VOF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGMYDEOJYGA . You are receiving this because you authored the thread.Message ID: @.***>

Robert-Main commented 3 months ago

it have worked thanks👍👍👍

On Mon, 13 May 2024 at 12:05, Robert Main @.***> wrote:

Thanks... let me try and i will give you the feedback

On Sun, 12 May 2024, 19:12 Daiki11101, @.***> wrote:

With this error, you can go to the Auth section of Appwrite -> Click on the account you just registered -> select the session tab, and then delete I hope this will help you

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/aora/issues/23#issuecomment-2106302980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXVZDUYSMHMFJCC4XJBGHLTZB6IIJAVCNFSM6AAAAABHQ3VOF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGMYDEOJYGA . You are receiving this because you authored the thread.Message ID: @.***>

ankitjasbeersingh commented 3 months ago

Can somebody help me to resolve my issue

akshayiitr04 commented 2 months ago

thanks men

ibra-44 commented 4 weeks ago

With this error, you can go to the Auth section of Appwrite -> Click on the account you just registered -> select the session tab, and then delete I hope this will help you

I did exactly what u said , but I couldn't find any active session and still facing the same issue

Rahulhanje commented 2 weeks ago

Thanks man it worked

Uzairkazi695 commented 2 weeks ago

i getting the same error. for creating an account and login in both I am facing same problem. in sessions there is nothing then why i am getting this error. Screenshot 2024-08-11 175740 Screenshot 2024-08-10 190551 i have tried of clearing sessions also but it did not workout either on creating an account.

Rahulhanje commented 2 weeks ago

Try this Stop server and Start again

Uzairkazi695 commented 2 weeks ago

i tried multiple times

Uzairkazi695 commented 2 weeks ago

for signup details are stored in DB but at the same time getting an error

Rahulhanje commented 2 weeks ago

Bro check delete browse locale storage data or else it may have error in configureing the Appwrite i guess
Also try to delete node modules and install again It may also work

Uzairkazi695 commented 2 weeks ago

Problem is resolved i am deleting all previous sessions when user is trying to log in. by using this method deleteSessions().

ibra-44 commented 2 weeks ago

where are you using deleteSession ?

BabuP1417 commented 2 weeks ago

Problem is resolved i am deleting all previous sessions when user is trying to log in. by using this method deleteSessions().

how

favio102 commented 2 weeks ago

delete manually all session in: -> browse inspector -> Application -> Cookies (click in localhost) -> Select the session you want to remove -> right click and delete -> Try to login again, you will be redirected to /home

Screenshot 2024-08-14 at 11 31 32 AM