Avatar of garethtnash
garethtnash
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Setting ASP Sessions

Is this the best way to set the sessions detailed below -

<% IF UserAccess.Fields.Item("VAT-Liable") = "N" AND UserAccess.Fields.Item("Eire-Member") = "Y" Then
Session("MemberVatCharge")="N"
ElseIF UserAccess.Fields.Item("VAT-Liable") = "N" AND UserAccess.Fields.Item("EU-Member") = "Y" Then
Session("MemberVatCharge")="N"
Elseif UserAccess.Fields.Item("UK-Member") = "Y" Then
Session("MemberVatCharge")="Y"
End if %>
<%
 Session("USERNAME")=(UserAccess.Fields.Item("Username").Value)
 Session("USERID")=(UserAccess.Fields.Item("ID").Value)
 Session("Name")=(UserAccess.Fields.Item("Name)
 %>

Open in new window


Thanks
ASPVB ScriptHTML

Avatar of undefined
Last Comment
Badotz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Badotz

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
garethtnash

ASKER
Thank you
Badotz

No worries - glad to help.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck