Forum Discussion
Dennis_Andrade_
Nimbostratus
Sep 18, 2013Insert host header using the edge client for iOS
Hope somebody can help me with this problem:
Users have the edge client installed on their iPads/iPhones and they connect to the server to establish a VPN connection. They open the Safari browse...
Nicolas_Menant
Employee
Apr 28, 2008Arrays give you the capability to store any kind of information based on an index, here are some examples about how to manipulate those data:create array:
array set ::Connexiondata { } Here the name of our array will be connection data
insert data:
set ::Connexiondata($myUserID) $uri Here we insert our data ($uri) in our data through the index $myuserid
find data:
if {[info exists ::Connexiondata($myUserID)]} { Here we check if we have some data for the index $myuserid
set user_data $::Connexiondata($myUserID) Here we retrieve the data based on the index
}
Check all data:
foreach { data } [array names ::Connexiondata] { on this loop we will extract all data inserted in Connexion data and assign it to $data
}
Remove data:
unset ::Connexiondata($index) Here we remove the data that are linked to the index $index
One piece of warning, You don't have any kind of timeout with array so you need to be careful how much data you handle since you are limited to 4Mb.
Usually it is possible to do the same thing with the session command which contains some timeout information.
HTH
Recent Discussions
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects