Forums / Setup & design / desperate: session id or other unique key required

desperate: session id or other unique key required

Author Message

Alessandro Cipriani

Tuesday 02 March 2004 7:54:38 am

hi all

i need something unique to identificate the current browser session... how can i do it?

http://ez.no/community/forum/setup_design/how_to_retrieve_session_id

i've seen operators, but nothing that can fit to my need!!!
i've got to call an external site with an unique param and i thought that session id will be the goal... but how to retrieve it????

best regards

alessandro

James Packham

Wednesday 03 March 2004 2:53:03 am

I'm not sure if this helps, as I don't really understand what it is you're trying to do. I just stumbled accross this variable and remembered your post.

$http.session

do an attribute(show) on it, this is what I get:

Attribute Type Value
eZUserLoggedInID NULL
eZUserInfoCache_Timestamp integer 1078310917
eZUserInfoCache array Array(1)
>10 array Array(5)
eZUserGroupsCache_Timestamp integer 1078310917
eZUserGroupsCache array Array(1)
>10 array Array(1)
PermissionCachedForUserID string 10
PermissionCachedForUserIDTimestamp integer 1078310915
UserRoles array Array(1)
>0 array Array(2)
eZGlobalSection array Array(1)
>id string 1
RegisterUserID integer 793
UserPolicies array Array(1)
>1 array Array(9)
UserLimitations array Array(6)
>702 array Array(1)
>703 array Array(1)
>704 array Array(2)
>708 array Array(3)
>705 array Array(3)
>709 array Array(3)
UserLimitationValues array Array(8)
>899 array Array(13)
>912 array Array(13)
>902 array Array(1)
>907 array Array(1)
>901 array Array(1)
>906 array Array(1)
>903 array Array(1)
>909 array Array(1)

Hope that helped!

Regards,

James

Alessandro Cipriani

Wednesday 03 March 2004 3:13:56 am

hi james
great! i feel we are getting the solution now!

please, can you be more clear? when you write
"$http.session

do an attribute(show) on it, this is what I get:

"

what do you mean?
i wrote
"{$http.session.show()}" but i got no output...

i'm trying to get the session id because i need something unique for each session, because then i'll got to call another site with this parameter ("session=9813494189" ecc...)

so i think that the session id will fit my need (because i don't need to generate it, but it's already existant.)

hope i've been more clear

best regards
alessandro

James Packham

Wednesday 03 March 2004 4:05:31 am

Sorry, what I mean is:

{$http.session|attribute(show)}

:)

~James~

Alessandro Cipriani

Wednesday 03 March 2004 5:27:47 am

ok james,
i wrote exactly "{$http.session|attribute(show)}"
but i get only 'Attribute Type Value', without the other values as you wrote...

James Packham

Wednesday 03 March 2004 6:45:23 am

Try {$http|attribute(show)}, if still nothing then there aren't any http variables available. I used this on the registration template, so all mine refer to those available during registration. However, I would have thought that session would be fairly generic.

Regards,

James

eZ debug

Timing: Jan 19 2025 09:47:32
Script start
Timing: Jan 19 2025 09:47:32
Module start 'content'
Timing: Jan 19 2025 09:47:33
Module end 'content'
Timing: Jan 19 2025 09:47:33
Script end

Main resources:

Total runtime0.8023 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1016180.8125
Module start 'content' 0.00590.6668 769.9141562.9219
Module end 'content' 0.67280.1295 1,332.8359341.3672
Script end 0.8022  1,674.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4702210.0002
Check MTime0.00150.1834210.0001
Mysql Total
Database connection0.00090.113210.0009
Mysqli_queries0.717189.38122030.0035
Looping result0.00220.27782010.0000
Template Total0.775096.620.3875
Template load0.00210.257620.0010
Template processing0.772996.333820.3865
Template load and register function0.00010.011510.0001
states
state_id_array0.00040.050810.0004
state_identifier_array0.00070.088020.0004
Override
Cache load0.00180.2239850.0000
Sytem overhead
Fetch class attribute can translate value0.00170.207230.0006
Fetch class attribute name0.00130.161580.0002
XML
Image XML parsing0.00130.167830.0004
class_abstraction
Instantiating content class attribute0.00000.0031120.0000
General
dbfile0.00190.2312330.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs