Hello,
I am using session in every page of my website. I am using payment gateway also. when page redirects on payment gateway website and after successfully transaction it redirects on my website page. but then it shows an 'object reference error' in 'session' line.
Please help. Its urgent.


Francis SusaimichaelRank #466 · 5.4K reputationPosted Sep 24, 2015, 3:32 AM EDT
Raja TRank #685 · 3.5K reputationPosted Sep 24, 2015, 3:35 AM EDT
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Sep 24, 2015, 3:50 AM EDT
if(Session["key"] != null) { var data = Session["key"]; // You may need to cast it first }