Link to home
Start Free TrialLog in
Avatar of garethtnash
garethtnashFlag 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
ASKER CERTIFIED SOLUTION
Avatar of Badotz
Badotz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of garethtnash

ASKER

Thank you
No worries - glad to help.