Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Programming > Other Programming - Perl, C++, Java, ASP, .NET Development
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-29-2005, 07:25 PM   #1 (permalink)
goldfish
Junior Member
 
Join Date: Jul 2005
Posts: 27
Default assign two array's with one session

Hi guys,

How can I assign two array's with one session variable?

thanks
goldfish is offline   Reply With Quote
Sponsored Links
Old 09-30-2005, 04:33 PM   #2 (permalink)
ez2c
Member
 
Join Date: Aug 2005
Location: Texas
Posts: 40
Default

Well you can try this:
Code:
arr1=Session("yourarray") arr2=Session("yourarray")
With this you'll have the same array in both variables... but note that changing one of the variables would change all the variables having the same array. The other way around is not possible, i.e. you can't directly assign two arrays as the value of the same variable - for this you'll have to use two separate variables.
ez2c is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 05:37 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums