|
In Asp.net's web development, how to implement a defined global variable (such as user ID) can also be read in other interfaces! 1) I used Session and Cookie to solve it, but I encountered the problem of timeliness with Session, and it was not safe to use Cookie, so I could only give up in the end. 2) Now use FormsAuthentication that comes with .Net to achieve. Although the function is implemented, the problem of timeliness is also solved. But a bit tedious.
3) Excuse me, is there any good way to solve it? |
|