File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
WebApplication2/Customer/Pages Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 412
412
<a href =" #" onclick =" showSection('unresolvedTickets')" >Unresolved Tickets</a >
413
413
<a href =" #" onclick =" showSection('remainingExtraAmount')" >Remaining & Extra Amounts</a >
414
414
<a href =" mailto:yehiarasheed@gmail.com" > Support</a >
415
- <a href =" login.aspx" >Log Out</a >
415
+ <a href =" login.aspx" onclick = " logout() " >Log Out</a >
416
416
417
417
</div >
418
418
<!-- Dark Mode Toggle Button -->
669
669
const activeSection = localStorage .getItem (' activeSection' ) || ' servicePlans' ;
670
670
showSection (activeSection);
671
671
});
672
+
673
+ function logout () {
674
+ // Clear the active section
675
+ localStorage .removeItem (' activeSection' );
676
+
677
+ // Proceed with your existing logout logic
678
+ // Example: Redirect to login page
679
+ window .location .href = ' login.aspx' ;
680
+ }
681
+
672
682
</script >
673
683
</body >
674
684
</html >
You can’t perform that action at this time.
0 commit comments