# how to customize, how long before cupertino session is automatically destroyed ?

**URL:** <https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309>\
**Category:** Wowza Streaming Engine\
**Created:** [April 11, 2012, 7:58pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309 "2012-04-11T19:58:03Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 11, 2012, 7:58pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/1 "2012-04-11T19:58:03Z")

</div>

Hi,

I see that the cupertino sessions are automatically destroyed if it’s inactive. I mean, when someone plays a video and after sometime pushes “done” he’s back to the browser, but session is not destroyed as yet and stays intact for another couple of seconds.

I using Links on the web page to allow user to seek to a specific part in the video, Also, i have URls that expire. So what happens is, if the guys takes longer to whatever is the current threshold(pretty low for me, i assume it’s around 15 seconds). He can’t play the video, since the session just got destroyed and new session cant be created because URL expired too.

So how can I adjust this time to, say around a minute ?

Thanks,

RaBelle

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 12, 2012, 2:24pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/2 "2012-04-12T14:24:11Z")

</div>

RaBelle,

What version of Wowza are you using? The new 3.1 release has significant updates to the way cupertinostreaming sessions are handled and that will help in your case.

[https://www.wowza.com/docs/wowza-streaming-engine-software-updates](https://www.wowza.com/docs/wowza-streaming-engine-software-updates)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 13, 2012, 3:18pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/3 "2012-04-13T15:18:55Z")

</div>

> if the guys takes longer to whatever is the current threshold(pretty low for me, i assume it’s around 15 seconds). He can’t play the video, since the session just got destroyed and new session cant be created because URL expired too.

Are you still experiencing the same problem using 3.1? Expired sessions should recover in 3.1. If this is still a problem can you give us more detail about this, how to replicate, what you are expecting?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 15, 2012, 1:08pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/4 "2012-04-15T13:08:39Z")

</div>

I don’t. This is something about your application that you have to work through.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 18, 2012, 2:38pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/5 "2012-04-18T14:38:46Z")

</div>

Try setting this with the newSessionTimeout Property

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 21, 2012, 12:13am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/6 "2012-04-21T00:13:16Z")

</div>

Try adding to the Application.xml /HTTPStreamer /Properties list for vod and /LiveStreamPacketizer /Properties list for live

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 22, 2012, 1:05pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/7 "2012-04-22T13:05:43Z")

</div>

I think newSessionTimeout is the property you need for this purpose. I’m not sure about validSessionTimeout, it’s not in the config reference, I don’t have info at the moment on this property. You can copy in your Application.xml to have a look; it should work per application.

Richard

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [April 17, 2012, 2:44pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/8 "2012-04-17T14:44:35Z")

</div>

rabelle,

Perhaps this is what you’re looking for:

> [@Programatically increase timeout for cupertino stream?](http://community.wowza.com/t/-/34716):
>
> I have an application that acts as an edge server for an FMIS live stream. In order to prevent bad data and timeout problems when clients first connect to the edge instance (when the instance hasn’t yet started), I’m waiting for the first audio or video packet to come in from the origin before accepting the RTP / HTTP session. This works fine for RTSP, but if a cupertino stream client is the first to connect, the HTTPStreamer times out. The error I get in the log is: HTTPStreamerAdapterCupert…

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [April 17, 2012, 1:43pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/9 "2012-04-17T13:43:58Z")

</div>

Hi

This is clearly a problem with your app as we have ruled out a Wowza fault in this issue.

> btw, the session does recover, but fails due to my app not able to validate it(the timestamp expires).
> 
> my intetnion is just to prolong the time before destroy.

Jason

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 13, 2012, 6:32am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/10 "2012-04-13T06:32:12Z")

</div>

Hi Richard,

i was using 3.0, just updated to 3.1 now where do i find out what i am looking for ?

is there some new property in 3.1, apart from validSessionTimeout to make this happen ? because adjusting validSessionTimeout doesnt seem to do the trick

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 13, 2012, 9:26am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/11 "2012-04-13T09:26:21Z")

</div>

is it something that’s not supposed to happen ? i mean, the session should expire if it’s idle.

here are the details,

i am on “Wowza Media Server 3 Developer Edition (Expires: Jun 09, 2012) 3.1.0 build1410”

the app works like this,

the web server generates a URL, based on which session id validated in session create, further in keyRequest() some more

credentials are checked, before key is passed on to the client.

now, as i said, the web page has some seek points which allow the user to directly move on to a scene. On RTMP the whole thing can be done in web page itself, but on apple devices, the media player is invoked. So if the guy has to browse to a particular scene(hyperlinked in the webpage), he has to quit the player and come back to safari.

now here the problem lies, since he has just around 15-20 seconds, It affects the user experience. Though it does try to recreate a session, my app rejects it because the URL has, meanwhile expired.

hence the guy would have to refresh the page, which is not desirable

what can i do to prolong this idle time, or is it controlled by safari and not customizable ?

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 13, 2012, 9:48am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/12 "2012-04-13T09:48:35Z")

</div>

> Are you still experiencing the same problem using 3.1? Expired sessions should recover in 3.1.

btw, the session does recover, but fails due to my app not able to validate it(the timestamp expires).

my intetnion is just to prolong the time before destroy.

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 14, 2012, 10:41pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/13 "2012-04-14T22:41:30Z")

</div>

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 17, 2012, 5:20am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/14 "2012-04-17T05:20:11Z")

</div>

So if i get it right, you are saying that there is no way to customize the session timeout time, right?

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 18, 2012, 5:42am UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/15 "2012-04-18T05:42:24Z")

</div>

Hi Randall,

i went through that post,

i did try to raise timeout by this propery

validSessionTimeout

25000

Integer

it doesnt seem to have any effect, i did it per app as suggested.

any clues, as to what am i missing ?

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 19, 2012, 10:18pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/16 "2012-04-19T22:18:32Z")

</div>

Hi Richard,

i was finally able to do it via newSessionTimeout change at the global level, however when i do it at app level, there seem to be no effect, is there any other step involved while modifying a property at the app level, i assume the app level thing should override the global stuff, right ?

btw, what’s the newSessionTimeout, from the sematics of it shouldnt the validSessionTimeout be the one i should be modifying ?

---

<div class="post-metadata">

**Author:** ![rabelle\_donovon](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@rabelle\_donovon](https://community.wowza.com/u/rabelle_donovon)\
**Post date:** [April 20, 2012, 8:17pm UTC](https://community.wowza.com/t/how-to-customize-how-long-before-cupertino-session-is-automatically-destroyed/38309/17 "2012-04-20T20:17:11Z")

</div>

yeah, i did the same earlier but it didnt have any effect, finally i made the change in httpstreamers.xml at global level. Although, i have just one HLS app right now, so basically it doesnt bother me. but if in future ig i need multiple cupertino streaming apps, i guess there might be a problem.

and once again, would you please let me know the difference between ‘new’ and ‘vaild’ sessionTimeout
