1

I am looking for a way to set session and retrieve a session in angular js. I do have an idea in PHP which was

$_SESSION['username'] = "xyz";

but I can't a way in angular. can someone please give me a link to any documents or a small snippet?

Thanx.

Ankit Chaurasia
  • 163
  • 2
  • 5
  • 14

2 Answers2

0

Please go through this http://www.c-sharpcorner.com/UploadFile/jj12345678910/a-simple-localstorage-demo-using-angularjs-and-html-5/

This may be help you.

Manoj Patidar
  • 1,171
  • 2
  • 11
  • 29
0

You can create a service as mentioned under following post to access local storage and can store the data there:

How do I store data in local storage using Angularjs?

Harsh Sharma
  • 910
  • 1
  • 7
  • 20