Storing Object between pages
Unanswered
Evalon posted this in #help-forum
![Avatar](https://cdn.discordapp.com/avatars/645856393387311105/606bea3323cb471dd8ce654f16ecabb7.webp?size=256)
EvalonOP
How can i store/change/access a variable thru pages?
e.g: lets say im on the "/login", and i want to store the user email before switching page so when i go to the other page i can show the email, or when i go to a page i need to fetch data based on that email, how can i store the user object so that i can access/change it anytime?
e.g: lets say im on the "/login", and i want to store the user email before switching page so when i go to the other page i can show the email, or when i go to a page i need to fetch data based on that email, how can i store the user object so that i can access/change it anytime?
3 Replies
![Avatar](https://cdn.discordapp.com/avatars/1053443057451794585/e11a0f3625ffde367560e0dd06797c0d.webp?size=256)
!=tgt
you can use route slugs
![Avatar](https://cdn.discordapp.com/avatars/645856393387311105/606bea3323cb471dd8ce654f16ecabb7.webp?size=256)
EvalonOP
Can you please explain? I new to next and web dev in general, so I don't get it