Hi
How to assign Session Variable as int
Thanks
Hi
How to assign Session Variable as int
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mohamed Azarudeen ZPosted May 24, 2023, 2:42 PM
Here's an example of how you can assign an
intvalue to a session variable:In the above example, the session variable named "MyVariable" is assigned the value of
123.Later, when you need to retrieve the value from the session variable, you can cast it back to an
int:In this case, the value stored in the session variable "MyVariable" is cast back to an
intand assigned to theretrievedValuevariable.Arnab MukherjeePosted May 24, 2023, 4:29 PM