navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Make new field a session variable

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Product Help >> Spooky Login Product Support >> Make new field a session variable
Page: [1]
 
sentinel

 

Posts: 566
Joined: 5/4/2005
From: Chicago, Illinois
Status: offline

 
Make new field a session variable - 4/25/2008 13:27:25   
Spooky,

I added another field to the users table called NetGroup. What file do I need to alter to make the NetGroup field a session variable?

I edited a_general

Sub SetSession(mode)
		
		'# Only used for login sessions, registration is handled in a_register.asp
		Session(appName&"UserID") 		= IFF(UserID&""="",request.form("UserID"),UserID)
		Session(appName&"UserName") 	= IFF(UserName&""="",request.form("UserName"),UserName)
		Session(appName&"AccessLevel")	= IFF(AccessLevel&""="",request.form("AccessLevel"),AccessLevel)
		Session(appName&"Admin")		= Admin
		Session(appName&"x_firstname")	= IFF(x_firstname&""="",request.form("x_firstname"),x_firstname)
		Session(appName&"x_lastname")	= IFF(x_lastname&""="",request.form("x_lastname"),x_lastname)
		If l_use_session then
			Session(appName&"x_email") 		=  x_email
			Session(appName&"x_company") 	=  IFF(x_company&""="",request.form("x_company"),x_company)
			Session(appName&"x_address") 	=  IFF(x_address&""="",request.form("x_address"),x_address)
			Session(appName&"x_city") 		=  IFF(x_city&""="",request.form("x_city"),x_city)
			Session(appName&"x_state") 		=  IFF(x_state&""="",request.form("x_state"),x_state)
			Session(appName&"x_zip") 		=  IFF(x_zip&""="",request.form("x_zip"),x_zip)
			Session(appName&"x_country") 	=  IFF(x_country&""="",request.form("x_country"),x_country)
			Session(appName&"x_phone") 		=  IFF(x_phone&""="",request.form("x_phone"),x_phone)
			Session(appName&"x_cellphone") 	=  IFF(x_cellphone&""="",request.form("x_cellphone"),x_cellphone)
			Session(appName&"x_fax") 		=  IFF(x_fax&""="",request.form("x_fax"),x_fax)
			Session(appName&"x_website") 	=  IFF(x_website&""="",request.form("x_website"),x_website)
			Session(appName&"x_Userfound") 	=  IFF(x_Userfound&""="",request.form("x_Userfound"),x_Userfound)
			Session(appName&"x_spare") 		=  IFF(x_spare&""="",request.form("x_spare"),x_spare)
			Session(appName&"NetGroup") 	=  IFF(NetGroup&""="",request.form("NetGroup"),NetGroup)


I also edited show_values

'=============================<br>
' Current Session values<br>
'=============================<br>
Session("<%=appName%>UserID")= <%=Session(appName&"UserID")%><br>
Session("<%=appName%>x_firstname")= <%=Session(appName&"x_firstname")%><br>
Session("<%=appName%>x_lastname") = <%=Session(appName&"x_lastname")%><br>
Session("<%=appName%>UserName") = <%=Session(appName&"Username")%><br>
Session("<%=appName%>AccessLevel") = <%=Session(appName&"AccessLevel")%><br>
Session("<%=appName%>Admin") = <%=Session(appName&"Admin")%><br>
Session("<%=appName%>x_email") = <%=Session(appName&"x_email")%><br>
Session("<%=appName%>x_company")= <%=Session(appName&"x_company")%><br>
Session("<%=appName%>x_address") = <%=Session(appName&"x_address")%><br>
Session("<%=appName%>x_city") = <%=Session(appName&"x_city")%><br>
Session("<%=appName%>x_state") = <%=Session(appName&"x_state")%><br>
Session("<%=appName%>x_zip") = <%=Session(appName&"x_zip")%><br>
Session("<%=appName%>x_country")= <%=Session(appName&"x_country")%><br>
Session("<%=appName%>x_phone") = <%=Session(appName&"x_phone")%><br>
Session("<%=appName%>x_fax") = <%=Session(appName&"x_fax")%><br>
Session("<%=appName%>x_website") = <%=Session(appName&"x_website")%><br>
Session("<%=appName%>x_spare") = <%=Session(appName&"x_spare")%><br>
Session("<%=appName%>NetGroup") = <%=Session(appName&"NetGroup")%><br>


I checked USE EXTENDED fields in admin as well.

I get this on the screen

'=============================
' Current Session values
'=============================
Session("UserID")= 3
Session("x_firstname")= Rich
Session("x_lastname") = Wa
Session("UserName") = wa
Session("AccessLevel") = 1
Session("Admin") = 1
Session("x_email") =
Session("x_company")=
Session("x_address") =
Session("x_city") =
Session("x_state") =
Session("x_zip") =
Session("x_country")=
Session("x_phone") =
Session("x_fax") =
Session("x_website") =
Session("x_spare") =
Session("NetGroup") =

As you can see... NetGroup is still blank. The NetGroup field value for this user is NCC

Any idea why it is not showing up?

Thanks

< Message edited by sentinel -- 4/25/2008 13:54:42 >


_____________________________

No matter where you go, there you are.
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Make new field a session variable - 4/25/2008 16:39:34   
Have you selected to show all extended values in the 'login' area of the settings page? When selected, the system automatically parses all new values

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to sentinel)
Page:   [1]

All Forums >> Product Help >> Spooky Login Product Support >> Make new field a session variable
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts