WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old September 5th, 2005, 08:04 PM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
php header redirect causing issues

hi all

we're working with this company that requires that we use soap to send data back and forth for verification

they have told us to keep a temporary session variable alive
this variable last for 20 minutes, and after 20 minutes we should redirect the user to the other company's site for re-authentication
we're having a problem at the moment, and we're not sure what it is
the document that we redirect to is an xml document
so what we do is, we try to get the info that we need, if that doesn't work, then we redirect the user to the other site

PHP Code:
// get required info        
try {
            
$strID $sc->getId($tempvar);
        }
//problem getting info, do re-authentication, by sending user to authentication site
        
catch (SoapFault $strException) {
            
header('Location: ' $strRefreshSessionUrl '?r=' $server $self $qs);
            exit;
        } 


the problem we are having is not in the php, it is when testing on a handset
we get the error message file format unknown
i'm not sure whether that is because header redirect is not allowed (on the handset), or whether the xml document is not valid (which seems unlikely because this is a big company we are working with)

it works from a browser, that's how we know that this is not a code issue
if it is a header redirect issue (which i think it might be, as we have had to use include rather than redirect before), is there any way around that or is that something we will need to use a static link to work around

we're using php 5, apache 2, wml 1.1, the handset i was testing on was a nokia 6230 i think

thanks
dave

Reply With Quote
  #2  
Old September 8th, 2005, 08:47 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,613 jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 3 Days 5 h 32 m 57 sec
Reputation Power: 1550
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Hi,

Is $strRefreshSessionUrl a full url, eg: http://whatever ?

I was hunting around on the nokia developers forums and it appears that there seems to be a bit of an issue with redirect on some Nokia phones ?
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
  #3  
Old September 9th, 2005, 06:55 AM
dtra dtra is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 446 dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level)dtra User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 39 m 36 sec
Reputation Power: 12
yeah it should be
i think i got it working though to some degree
might have been a urlencode thing on the querystring
we'll have to see what works best
a header redirect or a static page with a link

that's the problem with phones, it's just really hard to know what the problem is sometimes

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > php header redirect causing issues


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway